test seret
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Julien Fastré 2022-12-19 21:33:39 +01:00
parent ee28c4cbc8
commit 7539550ce7
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
2 changed files with 18 additions and 2 deletions

View File

@ -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
View File

@ -0,0 +1,3 @@
import os
print(os.getenv('SECRET'))