From 67153df88978d8cefdf72220d457ea7c7c7c540e Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Mon, 3 Jun 2019 13:59:37 -0700 Subject: [PATCH] Fix secret management --- .drone.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index dffbf66..39faf1d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,19 +14,23 @@ steps: image: python:3 commands: - make build-env upload - secrets: - - source: PYPI_USERNAME - target: TWINE_USERNAME - - source: PYPI_PASSWORD - target: TWINE_PASSWORD + environment: + TWINE_USERNAME: + from_secret: PYPI_USERNAME + TWINE_USERNAME: + from_secret: PYPI_PASSWORD when: event: [ tag ] - name: notify image: drillster/drone-email - host: $SMTP_HOST - username: $SMTP_USER - password: $SMTP_PASS - from: drone@iamthefij.com + settings: + host: + from_secret: SMTP_HOST + username: + from_secret: SMTP_USER + password: + from_secret: SMTP_PASS + from: drone@iamthefij.com when: status: [ changed, failure ]