Fix invalid case of Docker image tag

This commit is contained in:
Andrey Danilov
2024-05-20 23:00:12 +03:00
parent 44361a6c37
commit faa8adee00
+8 -2
View File
@@ -23,11 +23,17 @@ jobs:
username: ${{ github.actor }}
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
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: |
ghcr.io/${{ github.repository }}:${{ github.ref_name }}
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ steps.repository-lowercase.outputs.lowercase }}:${{ github.ref_name }}
ghcr.io/${{ steps.repository-lowercase.outputs.lowercase }}:latest