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
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
settings:
host:
from_secret: SMTP_HOST
username:
from_secret: SMTP_USER
password:
from_secret: SMTP_PASS
from: drone@iamthefij.com
when:
status: [ changed, failure ]