diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 57267fd..cab44cb 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -21,14 +21,6 @@ jobs: - name: Checkout repository 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 uses: docker/setup-buildx-action@v3 @@ -37,5 +29,8 @@ jobs: with: context: . push: true - # Tags it as 'latest'. If you push to main, it updates 'latest'. tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + registry: + url: ${{ env.REGISTRY }} + username: ${{ secrets.CONTAINER_REGISTRY_GITEA_USERNAME }} + password: ${{ secrets.CONTAINER_REGISTRY_GITEA_PASSWORD }}