CI: define the var just before using it

This commit is contained in:
Alexis Métaireau 2025-04-25 19:50:53 +02:00
parent 5cb619c22d
commit 5b2e8b3d71
No known key found for this signature in database
GPG key ID: C65C7A89A8FFC56E

View file

@ -271,7 +271,6 @@ jobs:
env:
COSIGN_PASSWORD: "password"
COSIGN_YES: true
IMAGE_URI: ${{ needs.merge.outputs.image_uri }}
needs:
- merge
# outputs: add signature location ?
@ -310,7 +309,8 @@ jobs:
- name: Sign container
run: |-
cosign sign --yes --key=${{ inputs.key_name }}.key "$IMAGE_URI"
export IMAGE_URI="${{ inputs.registry }}/${{ inputs.image_name }}:${{ needs.merge.outputs.tag }}@${{ needs.merge.outputs.digest_root }}"
cosign sign -d --yes --key=${{ inputs.key_name }}.key "$IMAGE_URI"
shell: bash
- name: Get the container image from the registry