fix(ci): attempt fallback authentication tokens for docker registry
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 6s
Build & Deploy / 🧪 QA (push) Successful in 2m1s
Build & Deploy / 🏗️ Build (push) Failing after 19s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 1s

This commit is contained in:
2026-03-03 17:11:25 +01:00
parent cbb3cf0be3
commit c4aaea30c1

View File

@@ -200,7 +200,17 @@ jobs:
- name: 🐳 Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: 🔐 Registry Login
run: echo "${{ secrets.NPM_TOKEN }}" | docker login git.infra.mintel.me -u "${{ github.repository_owner }}" --password-stdin
run: |
if echo "${{ secrets.NPM_TOKEN }}" | docker login git.infra.mintel.me -u "${{ github.repository_owner }}" --password-stdin 2>/dev/null; then
echo "NPM_TOKEN worked for repository_owner"
elif echo "${{ secrets.REGISTRY_PASS }}" | docker login git.infra.mintel.me -u "${{ github.repository_owner }}" --password-stdin 2>/dev/null; then
echo "REGISTRY_PASS worked for repository_owner"
elif echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.infra.mintel.me -u "${{ github.actor }}" --password-stdin 2>/dev/null; then
echo "GITHUB_TOKEN worked for actor (${{ github.actor }})"
else
echo "🚨 All tokens failed to authenticate to git.infra.mintel.me!"
exit 1
fi
- name: 🏗️ Build and Push
uses: docker/build-push-action@v5
with: