This commit is contained in:
parent
ee28c4cbc8
commit
7539550ce7
17
.drone.yml
17
.drone.yml
@ -3,6 +3,13 @@ kind: pipeline
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: print_secret
|
||||
image: python:3
|
||||
environment:
|
||||
SECRET:
|
||||
from_secret: secret
|
||||
commands:
|
||||
- python3 show_secret.py
|
||||
- name: test
|
||||
image: python:3
|
||||
commands:
|
||||
@ -21,11 +28,17 @@ steps:
|
||||
- md5
|
||||
- sha1
|
||||
- sha256
|
||||
- sha512
|
||||
when:
|
||||
event: tag
|
||||
|
||||
|
||||
---
|
||||
kind: secret
|
||||
name: username
|
||||
data: DfV0e3ycBlN36K0yfXwGd2LgVNzDe3+cWUlTAqyLtM17BUVdGg==
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: 8ea8fcd1aaabfde0e0c2b58b7afc59c6f84cebaeeb09f90d1454ef51aafe72d7
|
||||
hmac: 8de9b4635dc566263df694f898ad3cf4536c1481aa5a03e004dc6d0a05a8fe69
|
||||
|
||||
...
|
||||
|
3
print_secret.py
Normal file
3
print_secret.py
Normal file
@ -0,0 +1,3 @@
|
||||
import os
|
||||
|
||||
print(os.getenv('SECRET'))
|
Loading…
Reference in New Issue
Block a user