Skip to content

Commit

Permalink
Fix: image_url not being extracted properly
Browse files Browse the repository at this point in the history
  • Loading branch information
nss10 committed Sep 23, 2024
1 parent 53b360f commit c8c83cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/get_layer_info_for_nf_imgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
# Primarily this workflow is only expected to be triggered by `build_and_push_nf_base_images.yml`, these extra triggers are just added for convenience.
workflow_dispatch:
push:
branches: master
# branches: master
paths:
- 'nextflow-base-images/**'
- '.github/workflows/get_layer_info_for_nf_imgs.yml'
Expand Down 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}" | sed -E 's/\*(.+)/\1/g' | sed 's/^[ \t]*//;s/[ \t]*$//'
image_url=$(echo "${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

0 comments on commit c8c83cc

Please sign in to comment.