fix(ci): use direct docker login with github.token for registry auth (CAR-973)
CI / build-and-push (push) Failing after 6s
CI / deploy-dev (push) Has been skipped
CI / deploy-uat (push) Has been skipped

docker/login-action@v3 fails with Gitea's automatic token.
Use direct docker login with github.token instead, which has
the necessary write:package scope for the container registry.

Related: CAR-1009 (CI registry token standardization)
This commit is contained in:
2026-05-24 20:37:22 +00:00
parent a92f578dcf
commit bb8d7f159c
+2 -5
View File
@@ -43,11 +43,8 @@ jobs:
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITEA_TOKEN }}
run: |
echo "${{ github.token }}" | docker login ${{ env.REGISTRY }} --username "${{ github.actor }}" --password-stdin
- name: Extract metadata
id: meta