Simple secret test
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
df55d624e0
commit
de18967f7d
12
.drone.yml
12
.drone.yml
|
@ -5,5 +5,17 @@ name: default
|
||||||
steps:
|
steps:
|
||||||
- name: backend
|
- name: backend
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
|
environment:
|
||||||
|
DEMO_VALUE:
|
||||||
|
from_secret: demo
|
||||||
commands:
|
commands:
|
||||||
- echo "test"
|
- 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=
|
||||||
|
|
Loading…
Reference in New Issue