Skip to content

Commit

Permalink
fix: lowercase image name for signing
Browse files Browse the repository at this point in the history
  • Loading branch information
xynydev committed Jul 27, 2023
1 parent 140e992 commit a700132
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ jobs:
with:
string: ${{ env.IMAGE_REGISTRY }}

- name: Lowercase Image
id: image_case
uses: ASzc/change-string-case-action@v5
with:
string: ${{ env.IMAGE_NAME }}

# Build image using Buildah action
- name: Build Image
id: build_image
Expand Down Expand Up @@ -176,7 +182,7 @@ jobs:
- name: Sign container image
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/live'
run: |
cosign sign -y --key env://COSIGN_PRIVATE_KEY ${{ steps.registry_case.outputs.lowercase }}/${{ env.IMAGE_NAME }}@${TAGS}
cosign sign -y --key env://COSIGN_PRIVATE_KEY ${{ steps.registry_case.outputs.lowercase }}/${{ steps.image_case.outputs.lowercase }}@${TAGS}
env:
TAGS: ${{ steps.push.outputs.digest }}
COSIGN_EXPERIMENTAL: false
Expand Down

0 comments on commit a700132

Please sign in to comment.