Skip to content

Commit

Permalink
fix(build): make image tag lowecase
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Pfennig <[email protected]>
  • Loading branch information
0xE282B0 committed Dec 3, 2023
1 parent f3245d3 commit 730089a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/container-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.toLowerCase()}`
- name: Build and push container image
if: ${{ inputs.push-image }}
id: build-image
Expand All @@ -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: |
Expand Down

0 comments on commit 730089a

Please sign in to comment.