ci: try fix credentials

This commit is contained in:
2026-06-04 14:40:01 +02:00
parent 28dcdfaaec
commit 46c0157ece
+4 -9
View File
@@ -21,14 +21,6 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
# Gitea Actions automatically provides a token that can push to its own registry
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.CONTAINER_REGISTRY_GITEA_PASSWORD }}
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
@@ -37,5 +29,8 @@ jobs:
with: with:
context: . context: .
push: true push: true
# Tags it as 'latest'. If you push to main, it updates 'latest'.
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
registry:
url: ${{ env.REGISTRY }}
username: ${{ secrets.CONTAINER_REGISTRY_GITEA_USERNAME }}
password: ${{ secrets.CONTAINER_REGISTRY_GITEA_PASSWORD }}