Skip to content

Commit 3192a66

Browse files
committed
repository name must be lowercase
1 parent 585e5af commit 3192a66

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/docker-publish.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ jobs:
1616
- name: Checkout repository
1717
uses: actions/checkout@v4
1818

19+
# New Step: Create a lowercase repo name variable
20+
- name: Lowercase repo name
21+
run: |
22+
echo "REPO_LOWER=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
23+
1924
- name: Log in to GHCR
2025
uses: docker/login-action@v3
2126
with:
@@ -28,4 +33,5 @@ jobs:
2833
with:
2934
context: .
3035
push: true
31-
tags: ghcr.io/${{ github.repository }}:latest
36+
# Use the new lowercase environment variable here
37+
tags: ghcr.io/${{ env.REPO_LOWER }}:latest

0 commit comments

Comments
 (0)