Skip to content

Commit 89449f9

Browse files
committed
fix: lowercase GHCR image tags for Docker push
1 parent 22bcb85 commit 89449f9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ jobs:
119119
steps:
120120
- uses: actions/checkout@v4
121121

122+
- name: Lowercase repo name
123+
id: lower
124+
run: echo "repo=$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
125+
122126
- name: Login to GHCR
123127
uses: docker/login-action@v3
124128
with:
@@ -132,5 +136,5 @@ jobs:
132136
context: .
133137
push: true
134138
tags: |
135-
ghcr.io/${{ github.repository }}:latest
136-
ghcr.io/${{ github.repository }}:${{ github.sha }}
139+
ghcr.io/${{ steps.lower.outputs.repo }}:latest
140+
ghcr.io/${{ steps.lower.outputs.repo }}:${{ github.sha }}

0 commit comments

Comments
 (0)