mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-13 13:21:11 +00:00
github attestation fix with DOCKER_IMAGE_DIGEST
This commit is contained in:
parent
72d806aaf1
commit
b3f8021810
1 changed files with 4 additions and 3 deletions
7
.github/workflows/jf-cli.yml
vendored
7
.github/workflows/jf-cli.yml
vendored
|
|
@ -222,18 +222,19 @@ jobs:
|
|||
- name: "BuildInfo: Docker build create"
|
||||
run: |
|
||||
imageDigest=$(cat "${{env.DOCKER_METADATA_JSON}}" | jq '.["containerimage.digest"]')
|
||||
echo "${imageDigest}"
|
||||
echo "DOCKER_IMAGE_DIGEST: ${imageDigest}"
|
||||
echo "${imageDigest}" > ${{env.DOCKER_IMAGE_DIGEST}}
|
||||
|
||||
echo "${{env.RT_REPO_DOCKER_URL}}@${imageDigest}" > ${{env.DOCKER_METADATA_JSON}}
|
||||
|
||||
jf rt bdc ${{env.RT_REPO_DOCKER_VIRTUAL}} --image-file ${{env.DOCKER_METADATA_JSON}} --build-name=${{env.BUILD_NAME}} --build-number=${{env.BUILD_ID}}
|
||||
|
||||
|
||||
|
||||
- name: "Evidence: GitHub Attestation"
|
||||
uses: actions/attest-build-provenance@v3
|
||||
with:
|
||||
subject-name: "oci://${{env.RT_REPO_DOCKER_URL}}"
|
||||
subject-digest: "${{env.DOCKER_METADATA_JSON}}" # "${{steps.config-docker.outputs.digest}}"
|
||||
subject-digest: "${{env.DOCKER_IMAGE_DIGEST}}" # "${{steps.config-docker.outputs.digest}}"
|
||||
|
||||
|
||||
- name: "BuildInfo: Build Publish"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue