From b7114e200ac23c77673c3aeb19600b6cba2a3a5a Mon Sep 17 00:00:00 2001 From: Christoph Honal Date: Thu, 13 Feb 2020 08:42:21 +0100 Subject: [PATCH] Test anchor --- .drone.yml | 125 ++++++++++++++++++++++++++--------------------------- 1 file changed, 62 insertions(+), 63 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7cd9f9b..58d7e27 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,64 +1,63 @@ -pipeline: - build-cli: - image: plugins/docker - group: build - environment: - PROP_SERVER_USER: - from_secret: prop_server_user - PROP_SERVER_KEY: - from_secret: prop_server_key - PROP_SERVER: - from_secret: prop_server - PROP_DIR_SDR: - from_secret: prop_dir_sdr - PROP_DIR_DECODER: - from_secret: prop_dir_decoder - UI_MODE: cli - settings: - build_args_from_env: - - PROP_SERVER - - PROP_DIR_SDR - - PROP_DIR_DECODER - - PROP_SERVER_USER - - PROP_SERVER_KEY - - UI_MODE - username: - from_secret: docker_username - password: - from_secret: docker_password - repo: registry.chrz.de:443/move2docker - registry: registry.chrz.de:443 - tags: - - 'cli-x86_64' +anchors: + - &anchor_env + PROP_SERVER_USER: + from_secret: prop_server_user + PROP_SERVER_KEY: + from_secret: prop_server_key + PROP_SERVER: + from_secret: prop_server + PROP_DIR_SDR: + from_secret: prop_dir_sdr + PROP_DIR_DECODER: + from_secret: prop_dir_decoder - build-gui: - image: plugins/docker - group: build - environment: - PROP_SERVER_USER: - from_secret: prop_server_user - PROP_SERVER_KEY: - from_secret: prop_server_key - PROP_SERVER: - from_secret: prop_server - PROP_DIR_SDR: - from_secret: prop_dir_sdr - PROP_DIR_DECODER: - from_secret: prop_dir_decoder - UI_MODE: gui - settings: - build_args_from_env: - - PROP_SERVER - - PROP_DIR_SDR - - PROP_DIR_DECODER - - PROP_SERVER_USER - - PROP_SERVER_KEY - - UI_MODE - username: - from_secret: docker_username - password: - from_secret: docker_password - repo: registry.chrz.de:443/move2docker - registry: registry.chrz.de:443 - tags: - - 'gui-x86_64' \ No newline at end of file +--- +kind: pipeline +name: build-cli +steps: + - name: build + image: plugins/docker + environment: + <<: *anchor_env + UI_MODE: cli + settings: + build_args_from_env: + - PROP_SERVER + - PROP_DIR_SDR + - PROP_DIR_DECODER + - PROP_SERVER_USER + - PROP_SERVER_KEY + - UI_MODE + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: registry.chrz.de:443/move2docker + registry: registry.chrz.de:443 + tags: + - 'cli-x86_64' +--- +kind: pipeline +name: build-gui +steps: + - name: build + image: plugins/docker + environment: + <<: *anchor_env + UI_MODE: gui + settings: + build_args_from_env: + - PROP_SERVER + - PROP_DIR_SDR + - PROP_DIR_DECODER + - PROP_SERVER_USER + - PROP_SERVER_KEY + - UI_MODE + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: registry.chrz.de:443/move2docker + registry: registry.chrz.de:443 + tags: + - 'gui-x86_64' \ No newline at end of file