debug: test secret injection vs static env var
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
syoul
2026-03-17 16:50:20 +01:00
parent b26bbd8911
commit f6cf648c4c

View File

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