Skip to content

Commit

Permalink
feat: get images on main
Browse files Browse the repository at this point in the history
canonical/bundle-kubeflow#679

Summary of changes:
- Added script that produces list of container images managed by charm in this repository. Image list is dynamic list.
  • Loading branch information
Ivan Chvets committed Aug 28, 2023
1 parent de6364f commit 505f044
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/get-images.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
#
# This script returns list of container images that are managed by this charm and/or its workload
#
# dynamic list
IMAGE_LIST=()
IMAGE_LIST+=($(find -type f -name metadata.yaml -exec yq '.resources | to_entries | .[] | .value | ."upstream-source"' {} \;))
printf "%s\n" "${IMAGE_LIST[@]}"

0 comments on commit 505f044

Please sign in to comment.