Fix invalid case of Docker image tag
This commit is contained in:
@@ -23,11 +23,17 @@ jobs:
|
|||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets._GITHUB_PAT }}
|
password: ${{ secrets._GITHUB_PAT }}
|
||||||
|
|
||||||
|
- name: Git lowercase repository name
|
||||||
|
id: repository-lowercase
|
||||||
|
uses: ASzc/change-string-case-action@v6
|
||||||
|
with:
|
||||||
|
string: ${{ github.repository }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/${{ github.repository }}:${{ github.ref_name }}
|
ghcr.io/${{ steps.repository-lowercase.outputs.lowercase }}:${{ github.ref_name }}
|
||||||
ghcr.io/${{ github.repository }}:latest
|
ghcr.io/${{ steps.repository-lowercase.outputs.lowercase }}:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user