Skip to content

Commit

Permalink
Change the image_url to handle one or more spaces in the allowed_base…
Browse files Browse the repository at this point in the history
…_images.txt (#199)
  • Loading branch information
nss10 authored Sep 20, 2024
1 parent b60114b commit a4404ce
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 257 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/get_layer_info_for_nf_imgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
# Strip the first * if a line starts with *
if [[ "$image_url" == \** ]]; then
echo "Line_$LINENO: Stripping * from this line -- $image_url"
image_url="${image_url:1}"
image_url="${image_url}" | sed -E 's/\*(.+)/\1/g' | sed 's/^[ \t]*//;s/[ \t]*$//'
fi
echo "Line $LINENO: started reading lines from script"
manifest_url=$(echo "${image_url}" | sed 's|public\.ecr\.aws/\(.*\):\(.*\)|https://public.ecr.aws/v2/\1/manifests/\2|')
Expand Down
Loading

0 comments on commit a4404ce

Please sign in to comment.