Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
fix: Replaces images with digests
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <[email protected]>
  • Loading branch information
tolusha committed Jul 11, 2023
1 parent 0005e23 commit 5e210b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/dockerfiles/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ if env | grep -q ".*devfile_registry_image.*"; then
for devfile in "${devfiles[@]}"; do
# Put an actual image on the same line with 'image' field
# It allows to grep image with digest in the next step
sed -i -z -E 's|image: >-\n[ ]+|image: |g' ${devfile}
sed -i -E ':a;N;$!ba;s|image: >-\n[ ]+|image: |g' ${devfile}

readarray -t images < <(grep "image:" "${devfile}" | sed -r "s;.*image:[[:space:]]*'?\"?([._:a-zA-Z0-9-]*/?[._a-zA-Z0-9-]*/[._a-zA-Z0-9-]*(@sha256)?:?[._a-zA-Z0-9-]*)'?\"?[[:space:]]*;\1;")
for image in "${images[@]}"; do
Expand Down

0 comments on commit 5e210b9

Please sign in to comment.