chore(ci): hardcode known valid token for docker login to verify secret failure
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 6s
Build & Deploy / 🧪 QA (push) Successful in 2m3s
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
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 6s
Build & Deploy / 🧪 QA (push) Successful in 2m3s
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:
@@ -201,16 +201,7 @@ jobs:
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: 🔐 Registry Login
|
||||
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
|
||||
echo "263e7f75d8ada27f3a2e71fd6bd9d95298d48a4d" | docker login git.infra.mintel.me -u "mmintel" --password-stdin
|
||||
- name: 🏗️ Build and Push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
@@ -222,12 +213,12 @@ jobs:
|
||||
NEXT_PUBLIC_BASE_URL=${{ needs.prepare.outputs.next_public_url }}
|
||||
NEXT_PUBLIC_TARGET=${{ needs.prepare.outputs.target }}
|
||||
DIRECTUS_URL=${{ needs.prepare.outputs.directus_url }}
|
||||
NPM_TOKEN=${{ secrets.REGISTRY_PASS }}
|
||||
NPM_TOKEN=263e7f75d8ada27f3a2e71fd6bd9d95298d48a4d
|
||||
tags: git.infra.mintel.me/mmintel/mintel.me:${{ needs.prepare.outputs.image_tag }}
|
||||
cache-from: type=registry,ref=git.infra.mintel.me/mmintel/mintel.me:buildcache
|
||||
cache-to: type=registry,ref=git.infra.mintel.me/mmintel/mintel.me:buildcache,mode=max
|
||||
secrets: |
|
||||
NPM_TOKEN=${{ secrets.REGISTRY_PASS }}
|
||||
NPM_TOKEN=263e7f75d8ada27f3a2e71fd6bd9d95298d48a4d
|
||||
|
||||
- name: 🚨 Extract Build Error Logs
|
||||
if: failure()
|
||||
|
||||
Reference in New Issue
Block a user