From 2de282a7f7a68cedc668416ba1d59ec91937d4ed Mon Sep 17 00:00:00 2001 From: Christoph Honal Date: Thu, 13 Feb 2020 11:35:54 +0100 Subject: [PATCH] yaml anchors --- .drone.yml | 90 ++++++++++++++++++++++++++---------------------------- 1 file changed, 43 insertions(+), 47 deletions(-) diff --git a/.drone.yml b/.drone.yml index 6aab134..57671bc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,3 +1,31 @@ +global-variables: + default_environment: &default_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 + default_settings: &default_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 + + kind: pipeline name: default @@ -6,31 +34,10 @@ steps: image: plugins/docker depends_on: [ clone ] 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 + <<: *default_environment 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 + <<: *default_settings tags: - 'cli-x86_64' @@ -38,30 +45,19 @@ steps: image: plugins/docker depends_on: [ clone ] 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 + <<: *default_environment 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 + <<: *default_settings tags: - - 'gui-x86_64' \ No newline at end of file + - 'gui-x86_64' + + - name: notify + image: drillster/drone-email + settings: + host: smtp + port: 25 + skip_verify: true + from: drone@chrz.de + when: + status: [ success, failure ] \ No newline at end of file