fix(ci): lowercase image name for registry tag
Publish Docker image / build-and-push (push) Successful in 3m16s

github.repository preserves the owner's case (jeanGaston), but OCI
registries reject uppercase repository names. Compute a lowercased
IMAGE_NAME env var and use it for both tags instead.
This commit is contained in:
2026-07-30 11:20:06 +02:00
parent b5b6898e47
commit 3a859a8060
+5 -2
View File
@@ -17,6 +17,9 @@ jobs:
- uses: docker/setup-buildx-action@v3
- name: Compute lowercase image name
run: echo "IMAGE_NAME=$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV"
- name: Log in to Gitea container registry
uses: docker/login-action@v3
with:
@@ -30,5 +33,5 @@ jobs:
context: .
push: true
tags: |
${{ vars.REGISTRY_HOST }}/${{ github.repository }}:latest
${{ vars.REGISTRY_HOST }}/${{ github.repository }}:${{ github.sha }}
${{ vars.REGISTRY_HOST }}/${{ env.IMAGE_NAME }}:latest
${{ vars.REGISTRY_HOST }}/${{ env.IMAGE_NAME }}:${{ github.sha }}