Skip to content

Commit f2f87e2

Browse files
committed
fix: fixed lowercase method issue
1 parent e24e58c commit f2f87e2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build-image.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@ jobs:
2424
username: ${{ github.actor }}
2525
password: ${{ secrets.GITHUB_TOKEN }}
2626

27+
# Step to generate lowercase repository name
28+
- name: Set lowercase repository name
29+
run: echo "repo=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
30+
2731
- name: Build and push Docker image
2832
uses: docker/build-push-action@v5
2933
with:
3034
context: .
3135
file: ./Dockerfile
3236
push: true # Push the image after building
3337
tags: |
34-
ghcr.io/${{ toLower(github.repository) }}:latest
35-
ghcr.io/${{ toLower(github.repository) }}:${{ github.sha }}
38+
ghcr.io/${{ env.repo }}:latest
39+
ghcr.io/${{ env.repo }}:${{ github.sha }}

0 commit comments

Comments
 (0)