Skip to content

Commit

Permalink
Update GH workflow to process allowed_base_images.txt (#187)
Browse files Browse the repository at this point in the history
* Update shell script to test the new changes, and remove the `master` trigger
---------

Co-authored-by: Pauline Ribeyre <[email protected]>
  • Loading branch information
nss10 and paulineribeyre authored Jun 11, 2024
1 parent 416329a commit ad758f0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/get_layer_info_for_nf_imgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ jobs:
TOKEN=$(curl -s https://public.ecr.aws/token/ | jq -r .token)
layer_json="{}"
while IFS= read -r image_url; do
# Ignore lines that start with #
if [[ "$image_url" == \#* ]]; then
echo "Skipping this line -- $image_url"
continue
fi
# Strip the first * if a line starts with *
if [[ "$image_url" == \** ]]; then
echo "Stripping * from this line -- $image_url"
image_url="${image_url:1}"
fi
manifest_url=$(echo ${image_url} | sed 's|public\.ecr\.aws/\(.*\):\(.*\)|https://public.ecr.aws/v2/\1/manifests/\2|')
tag_name=$(echo ${image_url} | sed 's|\(.*\):\(.*\)|\2|')
echo $manifest_url, $tag_name
Expand Down
1 change: 1 addition & 0 deletions nextflow-base-images/allowed_base_images.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Note that base images with an asterisk `*` are temporarily unavailable for use and are being updated.
public.ecr.aws/u5x5h6w3/nextflow-approved/public:amazonlinux-base
public.ecr.aws/u5x5h6w3/nextflow-approved/public:gen3-cuda-11.8-ubuntu22.04-openssl
public.ecr.aws/u5x5h6w3/nextflow-approved/public:gen3-cuda-12.3-ubuntu22.04-openssl
Expand Down

0 comments on commit ad758f0

Please sign in to comment.