From eaa1814435007cdfecdb7b33b3fce9be9010456a 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..5ad4e3a 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: core.setOutput('lower_repository_owner', '${{ 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/${{ needs.variables.outputs.lower_repository_owner }}/kwasm-operator:${{ env.TAG_NAME }} - id: setoutput name: Set output parameters run: |