Skip to content

Commit 87f35aa

Browse files
fix: exit if digest not found for tag (#646)
1 parent 6667842 commit 87f35aa

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

scripts/update_values_with_digests.sh

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,10 @@ while IFS= read -r path_json; do
5252
echo "✅ Digest: $digest"
5353
else
5454
echo "❌ Failed to get digest for $image"
55-
continue
55+
exit 1
5656
fi
5757

5858
# write back to YAML
5959
echo "✍️ Writing digest back at $yq_path"
6060
yq -i "${yq_path}.digest = \"$digest\"" "$VALUES_FILE"
6161
done
62-
63-
64-
# yq eval-all '. as $item ireduce ({}; . * $item) | .. | select(has("image")) | path | join(".")' "$VALUES_FILE" | \
65-
# while read -r path; do
66-
# registry=$(yq eval ".$path.image.registry" "$VALUES_FILE")
67-
# repository=$(yq eval ".$path.image.repository" "$VALUES_FILE")
68-
# tag=$(yq eval ".$path.image.tag" "$VALUES_FILE")
69-
70-
# digest=$(get_image_digest "$registry" "$repository" "$tag")
71-
72-
# if [[ -n "$digest" ]]; then
73-
# yq eval -i ".$path.image.digest = \"$digest\"" "$VALUES_FILE"
74-
# fi
75-
# done

0 commit comments

Comments
 (0)