We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e24e58c commit f2f87e2Copy full SHA for f2f87e2
.github/workflows/build-image.yml
@@ -24,12 +24,16 @@ jobs:
24
username: ${{ github.actor }}
25
password: ${{ secrets.GITHUB_TOKEN }}
26
27
+ # Step to generate lowercase repository name
28
+ - name: Set lowercase repository name
29
+ run: echo "repo=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
30
+
31
- name: Build and push Docker image
32
uses: docker/build-push-action@v5
33
with:
34
context: .
35
file: ./Dockerfile
36
push: true # Push the image after building
37
tags: |
- ghcr.io/${{ toLower(github.repository) }}:latest
- ghcr.io/${{ toLower(github.repository) }}:${{ github.sha }}
38
+ ghcr.io/${{ env.repo }}:latest
39
+ ghcr.io/${{ env.repo }}:${{ github.sha }}
0 commit comments