Simple secret test
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Timothée Floure 2022-04-12 22:25:38 +02:00
parent df55d624e0
commit de18967f7d
Signed by: tfloure
GPG Key ID: 4502C902C00A1E12
1 changed files with 12 additions and 0 deletions

View File

@ -5,5 +5,17 @@ name: default
steps:
- name: backend
image: alpine:latest
environment:
DEMO_VALUE:
from_secret: demo
commands:
- echo "test"
- echo $DEMO_VALUE
- if [ "$DEMO_VALUE" == "1234" ]; then echo "WORKS"; else echo "FAILS"; fi
- export DEMO_VALUE
- sh -c "if [ \"$DEMO_VALUE\" == \"1234\" ]; then echo 'WORKS'; else echo 'FAILS'; fi"
---
kind: secret
name: demo
data: TDh9jI4V8uh4e/uU90WCepOorRQDXmDvY/gcH2h1Im0=