Skip to content

Commit 5bb043b

Browse files
committed
fix: ensure actions CI works if github user is not all-lowercase
1 parent f12344a commit 5bb043b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,17 @@ jobs:
3434
username: ${{ github.actor }}
3535
password: ${{ secrets.GITHUB_TOKEN }}
3636

37-
- name: Build and Push Multi-Arch Image
37+
- name: Lowercase repository name
38+
id: repo_name
39+
run: echo "REPO_NAME=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
40+
41+
- name: Build and push Docker image
3842
uses: docker/build-push-action@v5
3943
with:
4044
context: .
4145
file: ./Dockerfile
4246
push: true
4347
platforms: linux/amd64,linux/arm64
4448
tags: |
45-
ghcr.io/${{ github.repository }}:${{ steps.docker_meta.outputs.VERSION }}
46-
ghcr.io/${{ github.repository }}:latest
49+
ghcr.io/${{ steps.repo_name.outputs.REPO_NAME }}:${{ steps.docker_meta.outputs.VERSION }}
50+
ghcr.io/${{ steps.repo_name.outputs.REPO_NAME }}:latest

0 commit comments

Comments
 (0)