From 01a04571f8c8858e6020eac1196bdd1a07f96564 Mon Sep 17 00:00:00 2001 From: Sven Pfennig Date: Sun, 3 Dec 2023 20:58:21 +0100 Subject: [PATCH] fix(build): make image tag lowecase Signed-off-by: Sven Pfennig --- .github/workflows/container-image.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/container-image.yml b/.github/workflows/container-image.yml index 178d506..a112d8e 100644 --- a/.github/workflows/container-image.yml +++ b/.github/workflows/container-image.yml @@ -53,6 +53,12 @@ jobs: if: ${{ startsWith(github.ref, 'refs/tags/') }} run: | echo TAG_NAME=$(echo $GITHUB_REF | sed -e "s|refs/tags/||") >> $GITHUB_ENV + - name: Lowercase repo owner + uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 + id: lower_repository_owner + with: + result-encoding: string + script: return `${github.repository_owner.toLowerCase()}` - name: Build and push container image if: ${{ inputs.push-image }} id: build-image @@ -63,7 +69,7 @@ jobs: platforms: linux/amd64, linux/arm64 push: true tags: | - ghcr.io/${{github.repository_owner}}/kwasm-operator:${{ env.TAG_NAME }} + ghcr.io/${{ steps.lower_repository_owner.outputs.result }}/kwasm-operator:${{ env.TAG_NAME }} - id: setoutput name: Set output parameters run: |