From e0a10eea52fd511f1776190df29d788a2cf325c3 Mon Sep 17 00:00:00 2001 From: TonyBlur Date: Fri, 1 May 2026 14:30:32 +0800 Subject: [PATCH] Add step to prepare lowercase GHCR repository name in CI workflow --- .github/workflows/main.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 41cd17e..019e48b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -57,6 +57,12 @@ jobs: name: Get current date id: date run: echo "date=$(date +'%Y.%m.%d')" >> "$GITHUB_OUTPUT" + - + name: Prepare GHCR repository name (lowercase) + id: ghcr-repo + run: | + GHCR_REPO=$(echo "ghcr.io/${{ github.repository }}" | tr '[:upper:]' '[:lower:]') + echo "repository=$GHCR_REPO" >> "$GITHUB_OUTPUT" - name: Checkout uses: actions/checkout@v6 @@ -91,8 +97,8 @@ jobs: tags: | ${{ secrets.DOCKERHUB_REPOSITORY }}:latest ${{ secrets.DOCKERHUB_REPOSITORY }}:${{ steps.date.outputs.date }} - ghcr.io/${{ github.repository }}:latest - ghcr.io/${{ github.repository }}:${{ steps.date.outputs.date }} + ${{ steps.ghcr-repo.outputs.repository }}:latest + ${{ steps.ghcr-repo.outputs.repository }}:${{ steps.date.outputs.date }} dockerhub-sync-readme: needs: dockerhub-build-push