Skip to content

Commit

Permalink
Merge pull request #1032 from lveyde/fix-double-sha256-issue
Browse files Browse the repository at this point in the history
Remove the double @sha256 in case the image name is already digest base
  • Loading branch information
deads2k authored Feb 14, 2019
2 parents a71a531 + bc59aaf commit d060bf4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fi
# convert the release image pull spec to an "absolute" form if a digest is available - this is
# safe to resolve after the actions above because podman will not pull the image once it is
# locally available
if ! release=$( podman inspect {{.ReleaseImage}} -f '{{"{{"}} index .RepoDigests 0 {{"}}"}}' ) || [[ -z "${release}" ]]; then
if ! release=$( podman inspect {{.ReleaseImage}} -f '{{"{{"}} index .RepoDigests 0 {{"}}"}}' | sed s/@sha256@sha256/@sha256/ ) || [[ -z "${release}" ]]; then
echo "Warning: Could not resolve release image to pull by digest" 2>&1
release="{{.ReleaseImage}}"
fi
Expand Down

0 comments on commit d060bf4

Please sign in to comment.