From 995403bf11cc1c43b561b8647c23f1d09b362c68 Mon Sep 17 00:00:00 2001 From: "Marcus A." Date: Tue, 7 Apr 2026 23:32:01 +0000 Subject: [PATCH] CI: fix registry usage - separate registry hostname and repo name --- .gitea/workflows/ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index bed7976..ea5cf53 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -26,12 +26,12 @@ jobs: - name: Set image name (lowercase) id: meta run: | - echo "image=${{ secrets.DOCKER_REGISTRY }}/${{ toLower(gitea.repository) }}" >> $GITHUB_OUTPUT + echo "repo=${{ toLower(gitea.repository) }}" >> $GITHUB_OUTPUT - name: Log in to Gitea Container Registry uses: docker/login-action@v3 with: - registry: ${{ steps.meta.outputs.image }} + registry: ${{ secrets.DOCKER_REGISTRY }} username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} @@ -42,14 +42,14 @@ jobs: context: . push: ${{ github.event_name != 'pull_request' }} tags: | - ${{ steps.meta.outputs.image }}:${{ github.sha }} - ${{ steps.meta.outputs.image }}:latest - cache-from: type=registry,ref=${{ steps.meta.outputs.image }}:latest - cache-to: type=registry,ref=${{ steps.meta.outputs.image }}:latest,mode=max + ${{ secrets.DOCKER_REGISTRY }}/${{ steps.meta.outputs.repo }}:${{ github.sha }} + ${{ secrets.DOCKER_REGISTRY }}/${{ steps.meta.outputs.repo }}:latest + cache-from: type=registry,ref=${{ secrets.DOCKER_REGISTRY }}/${{ steps.meta.outputs.repo }}:latest + cache-to: type=registry,ref=${{ secrets.DOCKER_REGISTRY }}/${{ steps.meta.outputs.repo }}:latest,mode=max platforms: linux/amd64,linux/arm64 - name: Tag and push stable (main only) if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' run: | - docker tag ${{ steps.meta.outputs.image }}:${{ github.sha }} ${{ steps.meta.outputs.image }}:stable - docker push ${{ steps.meta.outputs.image }}:stable + docker tag ${{ secrets.DOCKER_REGISTRY }}/${{ steps.meta.outputs.repo }}:${{ github.sha }} ${{ secrets.DOCKER_REGISTRY }}/${{ steps.meta.outputs.repo }}:stable + docker push ${{ secrets.DOCKER_REGISTRY }}/${{ steps.meta.outputs.repo }}:stable