fix(ci): repair 'Extract Build Error Logs' undefined token variables
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 9s
Build & Deploy / 🏗️ Build (push) Failing after 9m49s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 QA (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 3s
Nightly QA / 🔍 Static Analysis (push) Successful in 3m35s
Nightly QA / 🎭 Lighthouse (push) Successful in 2m21s
Nightly QA / 📝 E2E (push) Successful in 4m34s
Nightly QA / 🔗 Links & Deps (push) Successful in 1m59s
Nightly QA / 🔔 Notify (push) Has been skipped

- Replaced missing steps.discover_token.outputs reference with secrets.NPM_TOKEN in Job 3 failure extractor
- Prevents the workflow from masking the actual docker build failure logs with a secondary auth failure
This commit is contained in:
2026-03-07 23:36:09 +01:00
parent 11f735bbdf
commit c52a132d62

View File

@@ -325,17 +325,16 @@ jobs:
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -H alpha.mintel.me >> ~/.ssh/known_hosts 2>/dev/null
echo "Re-running docker build with plain progress to capture exact logs..."
echo "${{ steps.discover_token.outputs.token }}" | docker login git.infra.mintel.me -u "${{ steps.discover_token.outputs.user }}" --password-stdin > login.log 2>&1
echo "${{ steps.discover_token.outputs.token }}" > /tmp/npm_token.txt
echo "${{ secrets.NPM_TOKEN }}" > /tmp/npm_token.txt
docker build \
--build-arg NEXT_PUBLIC_BASE_URL=${{ needs.prepare.outputs.next_public_url }} \
--build-arg NEXT_PUBLIC_TARGET=${{ needs.prepare.outputs.target }} \
--build-arg DIRECTUS_URL=${{ needs.prepare.outputs.directus_url }} \
--build-arg NPM_TOKEN=${{ steps.discover_token.outputs.token }} \
--build-arg NPM_TOKEN=${{ secrets.NPM_TOKEN }} \
--secret id=NPM_TOKEN,src=/tmp/npm_token.txt \
--progress plain \
-t temp-image . > docker_build_failed.log 2>&1
cat login.log >> docker_build_failed.log
cat login.log >> docker_build_failed.log || true
scp docker_build_failed.log root@alpha.mintel.me:/root/docker_build_failed.log
# JOB 4: Deploy
# ──────────────────────────────────────────────────────────────────────────────