ci: lowercase the GHCR image repository path (#22)
github.repository preserves the owner's mixed-case login (ServeurpersoCom), but GHCR/OCI repository names must be all lowercase, so every docker/build-push-action tag failed with 'repository name must be lowercase'. Co-authored-by: Gary <gitea@gerasch.dev>
This commit is contained in:
@@ -42,7 +42,7 @@ jobs:
|
|||||||
id: tags
|
id: tags
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
image="ghcr.io/${{ github.repository }}"
|
image="ghcr.io/$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')"
|
||||||
variant="${{ matrix.variant }}"
|
variant="${{ matrix.variant }}"
|
||||||
tags="${image}:${variant}-${{ github.sha }}"
|
tags="${image}:${variant}-${{ github.sha }}"
|
||||||
if [ "${{ github.ref }}" = "refs/heads/master" ]; then
|
if [ "${{ github.ref }}" = "refs/heads/master" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user