From a25ed92a3309cfb954300470273cc7ec577a3e62 Mon Sep 17 00:00:00 2001 From: KennyG Date: Mon, 30 Mar 2026 12:33:04 -0400 Subject: [PATCH] Fix GHCR tag casing in workflow. Normalize ghcr.io repository tags to lowercase before buildx push so Docker accepts fork owner/repo names with uppercase characters. Made-with: Cursor --- .github/workflows/main.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e5cecd3..e408a7d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,9 +5,6 @@ on: branches: - 'master' -env: - GHCR_REPOSITORY: ghcr.io/${{ github.repository }} - jobs: quality-checks: runs-on: ubuntu-latest @@ -71,12 +68,16 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v4 + - + name: Prepare GHCR repository name + id: ghcr_repo + run: echo "value=$(echo "ghcr.io/${GITHUB_REPOSITORY}" | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT" - name: Prepare image tags id: image_tags env: DOCKERHUB_REPOSITORY: ${{ env.DOCKERHUB_REPOSITORY }} - GHCR_REPOSITORY: ${{ env.GHCR_REPOSITORY }} + GHCR_REPOSITORY: ${{ steps.ghcr_repo.outputs.value }} DATE: ${{ steps.date.outputs.date }} run: | { @@ -185,11 +186,12 @@ jobs: id: release_body env: DOCKERHUB_REPO: ${{ secrets.DOCKERHUB_REPOSITORY }} - GHCR_REPO: ${{ env.GHCR_REPOSITORY }} + GHCR_REPO: ghcr.io/${{ github.repository }} DATE: ${{ steps.date.outputs.date }} HAS_COMMITS: ${{ steps.commits.outputs.has_commits }} COMMITS: ${{ steps.commits.outputs.commits }} run: | + GHCR_REPO="$(echo "${GHCR_REPO}" | tr '[:upper:]' '[:lower:]')" { echo '## Docker Images' echo ''