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
|
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 ]
|
||||||
|
Loading…
Reference in New Issue
Block a user