Skip to content

Commit

Permalink
Try using registry-paths output intead
Browse files Browse the repository at this point in the history
  • Loading branch information
samhclark committed Sep 22, 2024
1 parent 3cdb709 commit bf56425
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,14 @@ jobs:
if: ${{ github.event_name != 'pull_request' }}
env:
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
IMAGE: ${{ steps.build_image.outputs.image }}
TAGS: ${{ steps.build_image.outputs.tags }}
DIGEST: ${{ steps.push.outputs.digest }}
# IMAGE: ghcr.io/${{ github.repository_owner }}/${{ steps.build_image.outputs.regis }}
# TAGS: ${{ steps.build_image.outputs.tags }}
digest: ${{ steps.push.outputs.digest }}
fully_qualified_image_names_json: ${{ steps.push.registry-paths }}
# SIGSTORE_ID_TOKEN: ${{ GITHUB_TOKEN }}
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: echo "${TAGS}" | xargs -I {} cosign sign --yes ghcr.io/${{ github.repository_owner }}/${IMAGE}:{}@${DIGEST}
run: echo "${fully_qualified_image_names_json}" | jq -r '.[]' | xargs -I {} cosign sign --yes "{}@${digest}"

- name: Echo outputs
if: github.event_name != 'pull_request'
Expand Down

0 comments on commit bf56425

Please sign in to comment.