Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
cleanup, get proper digest into docker provenance
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Eltgroth <jeltgroth@vmware.com>
  • Loading branch information
joeeltgroth committed Aug 16, 2023
1 parent 8120b4f commit d74c67c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/actions/srp-helper/publish-container/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ observer_agent -m stop_observer -f network_provenance.json
key="${registry}/${BUILDPACK}-buildpack:${version}"
echo "key set to ${key}"
action="publish"
docker pull "${key}"
image=$(docker inspect --format='{{index .RepoDigests 0}}' "${key}")
image=$(docker inspect --format='{{json .RepoDigests}}' "${key}" | jq '.[0]')
echo "image set to ${image}"
srp provenance add-output docker \
--set-key="${key}" \
Expand Down

0 comments on commit d74c67c

Please sign in to comment.