mirror of
https://github.com/optim-enterprises-bv/secureblue.git
synced 2025-11-07 22:03:10 +00:00
fix: lowercase image name for signing
This commit is contained in:
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -126,6 +126,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
string: ${{ env.IMAGE_REGISTRY }}
|
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
|
# Build image using Buildah action
|
||||||
- name: Build Image
|
- name: Build Image
|
||||||
id: build_image
|
id: build_image
|
||||||
@@ -176,7 +182,7 @@ jobs:
|
|||||||
- name: Sign container image
|
- name: Sign container image
|
||||||
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/live'
|
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/live'
|
||||||
run: |
|
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:
|
env:
|
||||||
TAGS: ${{ steps.push.outputs.digest }}
|
TAGS: ${{ steps.push.outputs.digest }}
|
||||||
COSIGN_EXPERIMENTAL: false
|
COSIGN_EXPERIMENTAL: false
|
||||||
|
|||||||
Reference in New Issue
Block a user