diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 5d24b5a..4c4f931 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -7,7 +7,7 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} + IMAGE_NAME: ${{ toLowerCase(github.repository) }} jobs: docker: @@ -20,6 +20,11 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Convert repository name to lowercase + id: repo-name + run: | + echo "REPO_LOWERCASE=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV + - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -37,7 +42,7 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + images: ${{ env.REGISTRY }}/${{ env.REPO_LOWERCASE }} tags: | type=semver,pattern={{version}} type=raw,value=latest,enable={{is_default_branch}} @@ -50,5 +55,5 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache - cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max \ No newline at end of file + cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.REPO_LOWERCASE }}:buildcache + cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.REPO_LOWERCASE }}:buildcache,mode=max \ No newline at end of file