File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments