diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index bf55e6b..647d159 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -53,18 +53,19 @@ jobs: if [[ "${{ github.event_name }}" == "workflow_dispatch" && -n "${{ inputs.tag }}" ]]; then # Manual dispatch with custom tag TAG="${{ inputs.tag }}" - TAGS="docker.io/${REPO_LOWER}:${TAG},ghcr.io/${{ env.REPO_NAME }}:${TAG}" + TAGS="docker.io/${REPO_LOWER}:${TAG},ghcr.io/${REPO_LOWER}:${TAG}" elif [[ "${{ github.ref_type }}" == "tag" ]]; then # Git tag push TAG="${{ github.ref_name }}" TAG="${TAG#v}" # Remove v prefix - TAGS="docker.io/${REPO_LOWER}:${TAG},ghcr.io/${{ env.REPO_NAME }}:${TAG}" + TAGS="docker.io/${REPO_LOWER}:${TAG},ghcr.io/${REPO_LOWER}:${TAG}" elif [[ "${{ github.ref }}" == "refs/heads/main" ]]; then # Main branch push - TAGS="docker.io/${REPO_LOWER}:latest,ghcr.io/${{ env.REPO_NAME }}:latest" + TAGS="docker.io/${REPO_LOWER}:latest,ghcr.io/${REPO_LOWER}:latest" fi echo "tags=${TAGS}" >> $GITHUB_OUTPUT + echo "repo_lower=${REPO_LOWER}" >> $GITHUB_OUTPUT echo "Publishing tags: ${TAGS}" - name: 🔑 Login to Docker Hub @@ -86,7 +87,7 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ghcr.io/${{ env.REPO_NAME }} + images: ghcr.io/${{ steps.tags.outputs.repo_lower }} tags: | type=raw,value=${{ steps.tags.outputs.tags }} labels: |