File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff 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 "
6161done
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
You can’t perform that action at this time.
0 commit comments