Fix secret management
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is failing Details

This commit is contained in:
IamTheFij 2019-06-03 13:59:37 -07:00
parent 56f2040536
commit 67153df889
1 changed files with 13 additions and 9 deletions

View File

@ -14,19 +14,23 @@ 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
from: drone@iamthefij.com username:
from_secret: SMTP_USER
password:
from_secret: SMTP_PASS
from: drone@iamthefij.com
when: when:
status: [ changed, failure ] status: [ changed, failure ]