Skip to content

Commit

Permalink
CI: Don't run the image creation if already exist
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenkumar committed Jan 30, 2025
1 parent c87aacb commit 62d6729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion okd-arm64/build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ check_dependency
login_to_registry

# check if image already exist
if skopeo inspect --format "Digest: {{.Digest}}" docker://quay.io/okd-arm/okd-arm-release:${OKD_VERSION}; then
if skopeo --override-os="linux" --override-arch="amd64" inspect --format "Digest: {{.Digest}}" docker://quay.io/okd-arm/okd-arm-release:${OKD_VERSION}; then
echo "image quay.io/okd-arm/okd-arm-release:${OKD_VERSION} already exist"
exit 0
fi
Expand Down

0 comments on commit 62d6729

Please sign in to comment.