diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index f1291b3..3188946 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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()