From e08570bb7d50fa9df6e372459d0cb58f64f1b7a5 Mon Sep 17 00:00:00 2001 From: CommunityMaintained <293462701+CommunityMaintained@users.noreply.github.com> Date: Sun, 14 Jun 2026 13:45:17 -0500 Subject: [PATCH] fix(ci): correct casing for ghcr --- .github/workflows/ci.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e0ddeb..2286dd9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,9 +70,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Get short SHA - id: sha - run: echo "value=${GITHUB_SHA:0:7}" >> $GITHUB_OUTPUT + - name: Get short SHA and lowercase repo + id: meta + run: | + echo "sha=${GITHUB_SHA:0:7}" >> $GITHUB_OUTPUT + echo "repo=${GITHUB_REPOSITORY,,}" >> $GITHUB_OUTPUT - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -91,7 +93,7 @@ jobs: file: ./docker/selfhosted.Dockerfile platforms: linux/amd64 push: true - tags: ghcr.io/${{ github.repository }}:pr-${{ github.event.pull_request.number }}-${{ steps.sha.outputs.value }} + tags: ghcr.io/${{ steps.meta.outputs.repo }}:pr-${{ github.event.pull_request.number }}-${{ steps.meta.outputs.sha }} cache-from: type=gha cache-to: type=gha,mode=max @@ -110,9 +112,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Get version from version.txt - id: version - run: echo "value=$(cat version.txt)" >> $GITHUB_OUTPUT + - name: Get version and lowercase repo + id: meta + run: | + echo "version=$(cat version.txt)" >> $GITHUB_OUTPUT + echo "repo=${GITHUB_REPOSITORY,,}" >> $GITHUB_OUTPUT - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -131,6 +135,6 @@ jobs: file: ./docker/selfhosted.Dockerfile platforms: linux/amd64 push: true - tags: ghcr.io/${{ github.repository }}:rc-${{ steps.version.outputs.value }}-${{ github.run_number }} + tags: ghcr.io/${{ steps.meta.outputs.repo }}:rc-${{ steps.meta.outputs.version }}-${{ github.run_number }} cache-from: type=gha cache-to: type=gha,mode=max