Skip to content

Commit 26a3ae6

Browse files
authored
sync-zizmor-versions: retry up to 5 times (#155)
1 parent 435cb31 commit 26a3ae6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎support/sync-zizmor-versions.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ tags=$(skopeo list-tags "docker://${IMAGE}" | jq -r '.Tags[]')
3030
# and emit it as a line in the format:
3131
# <tag> <digest>
3232
for tag in ${tags}; do
33-
digest=$(skopeo --override-os=linux --override-arch=amd64 inspect "docker://${IMAGE}:${tag}" | jq -r '.Digest')
33+
# Retry up to 5 times, since GHCR is unreliable.
34+
digest=$(skopeo --override-os=linux --override-arch=amd64 inspect --retry-times=5 "docker://${IMAGE}:${tag}" | jq -r '.Digest')
3435
echo "${tag} ${digest}"
3536
done

0 commit comments

Comments
 (0)