fix(ci): correct casing for ghcr

This commit is contained in:
CommunityMaintained 2026-06-14 13:45:17 -05:00
parent a27f0d24f6
commit e08570bb7d

View file

@ -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