Fix secret management
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing

This commit is contained in:
IamTheFij 2019-06-03 13:59:37 -07:00
parent 56f2040536
commit 67153df889

View File

@ -14,18 +14,22 @@ steps:
image: python:3 image: python:3
commands: commands:
- make build-env upload - make build-env upload
secrets: environment:
- source: PYPI_USERNAME TWINE_USERNAME:
target: TWINE_USERNAME from_secret: PYPI_USERNAME
- source: PYPI_PASSWORD TWINE_USERNAME:
target: TWINE_PASSWORD from_secret: PYPI_PASSWORD
when: when:
event: [ tag ] event: [ tag ]
- name: notify - name: notify
image: drillster/drone-email image: drillster/drone-email
host: $SMTP_HOST settings:
username: $SMTP_USER host:
password: $SMTP_PASS from_secret: SMTP_HOST
username:
from_secret: SMTP_USER
password:
from_secret: SMTP_PASS
from: drone@iamthefij.com from: drone@iamthefij.com
when: when:
status: [ changed, failure ] status: [ changed, failure ]