Skip to content

Commit 40d0506

Browse files
committed
trying out workaround to lowercase name1
1 parent 47805ca commit 40d0506

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/docker-image.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,16 @@ jobs:
2727
username: ${{ github.repository_owner }}
2828
password: ${{ secrets.GITHUB_TOKEN }}
2929

30+
- name: Set lowercase repository name
31+
run: |
32+
echo "REPO_LOWER=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
33+
3034
- name: Build and push Docker image
3135
id: docker_build
3236
uses: docker/build-push-action@v6
3337
with:
3438
context: .
3539
push: true
36-
tags: ghcr.io/${{ github.repository | toLower }}:latest
40+
tags: ghcr.io/${{ env.REPO_LOWER }}:latest
3741
cache-from: type=gha
3842
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)