Skip to content

Commit 93c2c88

Browse files
committed
try fixing problem with lowercase
1 parent 228663b commit 93c2c88

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,30 @@ jobs:
3636
# Set up BuildKit Docker container builder to be able to build
3737
# multi-platform images and export cache
3838
# https://github.com/docker/setup-buildx-action
39-
- name: Set up Docker Buildx
39+
- name: Set Up Docker Buildx
4040
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
4141

4242
# Login against a Docker registry except on PR
4343
# https://github.com/docker/login-action
44-
- name: Log into registry ${{ env.REGISTRY }}
44+
- name: Log Into Registry ${{ env.REGISTRY }}
4545
if: github.event_name != 'pull_request'
4646
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
4747
with:
4848
registry: ${{ env.REGISTRY }}
4949
username: ${{ github.actor }}
5050
password: ${{ secrets.GITHUB_TOKEN }}
5151

52+
- name: Lowercase Repo Name
53+
run: echo "IMAGE_NAME=$(echo $GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
54+
5255
# Build and push Docker image with Buildx (don't push on PR)
5356
# https://github.com/docker/build-push-action
54-
- name: Build and push Docker image
57+
- name: Build And Push Docker Image
5558
id: build-and-push
5659
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
5760
with:
5861
context: .
5962
push: true
60-
tags: ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }}
63+
tags: ghcr.io/${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name }}
6164
cache-from: type=gha
6265
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)