debug: test secret injection vs static env var
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -32,6 +32,18 @@ steps:
|
||||
- 'grep -q "^\.env$" .gitignore || (echo "ERREUR: .env manquant dans .gitignore" && exit 1)'
|
||||
- echo "Verifications de securite OK"
|
||||
|
||||
# Debug : test injection secrets
|
||||
- name: debug-secrets
|
||||
image: alpine:3.20
|
||||
environment:
|
||||
TEST_STATIC: hello-world
|
||||
PS_DOMAIN:
|
||||
from_secret: ps_domain
|
||||
commands:
|
||||
- echo "TEST_STATIC=${TEST_STATIC}"
|
||||
- echo "PS_DOMAIN_LEN=${#PS_DOMAIN}"
|
||||
- if [ -n "${PS_DOMAIN}" ]; then echo "PS_DOMAIN OK"; else echo "PS_DOMAIN VIDE"; fi
|
||||
|
||||
# Etape 3 : Deploiement sur sonic via Docker socket
|
||||
- name: deploy
|
||||
image: docker:27-cli
|
||||
|
||||
Reference in New Issue
Block a user