Skip to content

Commit

Permalink
backport: Update get-images script according main branch
Browse files Browse the repository at this point in the history
Get script up-to-date with `main` branch. This summarizes changes
introduced in PRs #106 and #124.
  • Loading branch information
orfeas-k committed Sep 26, 2023
1 parent 92affde commit df31e8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/get-images.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
IMAGE_LIST=()
IMAGE_LIST+=($(find -type f -name metadata.yaml -exec yq '.resources | to_entries | .[] | .value | ."upstream-source"' {} \;))
VERSION=$(grep upstream-source charms/argo-controller/metadata.yaml | awk -F':' '{print $3}')
IMAGE_LIST+=($(grep "executor_image =" charms/argo-controller/src/charm.py | awk '{print $3}' | sed s/f//g | sed s/\"//g | sed s/{version}/$VERSION/g))
IMAGE_LIST+=($(yq '.options.executor-image.default' ./charms/argo-controller/config.yaml))
printf "%s\n" "${IMAGE_LIST[@]}"

0 comments on commit df31e8a

Please sign in to comment.