Fix secret management
This commit is contained in:
parent
56f2040536
commit
67153df889
20
.drone.yml
20
.drone.yml
@ -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 ]
|
||||
|
Loading…
Reference in New Issue
Block a user