From c52a132d6235e6e11272e7506cf54fe7fc19d031 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Sat, 7 Mar 2026 23:36:09 +0100 Subject: [PATCH] fix(ci): repair 'Extract Build Error Logs' undefined token variables - 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 --- .gitea/workflows/deploy.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index c2b7bfb..756c8a0 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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 # ──────────────────────────────────────────────────────────────────────────────