chore: enable set +e for debug scp log
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 6s
Build & Deploy / 🧪 QA (push) Successful in 2m0s
Build & Deploy / 🏗️ Build (push) Failing after 17s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s

This commit is contained in:
2026-03-03 17:06:57 +01:00
parent bc3a75a915
commit cbb3cf0be3

View File

@@ -222,12 +222,13 @@ jobs:
- name: 🚨 Extract Build Error Logs
if: failure()
run: |
set +e
mkdir -p ~/.ssh
echo "${{ secrets.ALPHA_SSH_KEY }}" > ~/.ssh/id_ed25519
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 "${{ secrets.NPM_TOKEN }}" | docker login git.infra.mintel.me -u "${{ github.repository_owner }}" --password-stdin
echo "${{ secrets.NPM_TOKEN }}" | docker login git.infra.mintel.me -u "${{ github.repository_owner }}" --password-stdin > login.log 2>&1
echo "${{ secrets.REGISTRY_PASS }}" > /tmp/npm_token.txt
docker build \
--build-arg NEXT_PUBLIC_BASE_URL=${{ needs.prepare.outputs.next_public_url }} \
@@ -235,7 +236,8 @@ jobs:
--build-arg DIRECTUS_URL=${{ needs.prepare.outputs.directus_url }} \
--secret id=NPM_TOKEN,src=/tmp/npm_token.txt \
--progress plain \
-t temp-image . > docker_build_failed.log 2>&1 || true
-t temp-image . > docker_build_failed.log 2>&1
cat login.log >> docker_build_failed.log
scp docker_build_failed.log root@alpha.mintel.me:/root/docker_build_failed.log
# ──────────────────────────────────────────────────────────────────────────────
# JOB 4: Deploy