diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 704f564b..75e43a24 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,10 +10,17 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + + - name: Debug Gitea Context + env: + GITEA_CONTEXT: ${{ toJson(gitea) }} + run: | + echo "Gitea Context:" + echo "$GITEA_CONTEXT" - name: Debug - Print Gitea context run: | - echo "LOCAL_REGISTRY variable is: ${{ vars.REGISTRY_HOST }}" + echo "LOCAL_REGISTRY variable is: ${{ vars.LOCAL_REGISTRY }}" echo "Gitea Actor: ${{ gitea.actor }}" echo "Repository Owner: ${{ gitea.repository_owner }}" echo "Repository Name: ${{ gitea.repository_name }}" @@ -26,7 +33,7 @@ jobs: # (Test credentials early, befor failing late in the process.) uses: docker/login-action@v3 with: - registry: ${{vars.REGISTRY_HOST}} + registry: ${{vars.LOCAL_REGISTRY}} username: ${{ gitea.actor }} password: ${{ secrets.GITEA_TOKEN }} @@ -51,5 +58,5 @@ jobs: platforms: linux/amd64 # ,linux/arm64 push: true tags: | - ${{ vars.REGISTRY_HOST }}/${{ gitea.repository_owner }}/${{ gitea.repository_name }}:latest - ${{ vars.REGISTRY_HOST }}/${{ gitea.repository_owner }}/${{ gitea.repository_name }}:${{ gitea.sha }} + ${{ vars.LOCAL_REGISTRY }}/${{ gitea.repository_owner }}/${{ gitea.repository_name }}:latest + ${{ vars.LOCAL_REGISTRY }}/${{ gitea.repository_owner }}/${{ gitea.repository_name }}:${{ gitea.sha }}