ci: docker_tag=ext (ensure NEXT_PUBLIC_* exported via .env.example + secrets)
All checks were successful
build-and-push-ext / build_push (push) Successful in 1m9s

This commit is contained in:
Debian Dev4 2025-09-17 08:51:30 +00:00
parent 304556c1f1
commit cf84f59353

View File

@ -40,9 +40,21 @@ jobs:
. ./.env.example . ./.env.example
fi fi
set +a set +a
echo "Environment NEXT_PUBLIC_* available:" || true echo "Environment NEXT_PUBLIC_* available (current step):" || true
env | grep '^NEXT_PUBLIC_' || true env | grep '^NEXT_PUBLIC_' || true
# Exporter pour les étapes suivantes via GITHUB_ENV
count=0
while IFS='=' read -r key value; do
echo "$key=$value" >> "$GITHUB_ENV"
count=$((count+1))
done < <(env | grep '^NEXT_PUBLIC_')
if [ "$count" -eq 0 ]; then
echo "Aucune variable NEXT_PUBLIC_* détectée (ni .env/.env.example ni secrets). Abandon." >&2
exit 1
fi
- name: Compute Docker tag from commit message or fallback - name: Compute Docker tag from commit message or fallback
id: tag id: tag
shell: bash shell: bash