From 7a010f170c90ad4b94f49b31b689d035f9b30dd7 Mon Sep 17 00:00:00 2001 From: NohaIhab Date: Tue, 26 Sep 2023 09:41:54 +0000 Subject: [PATCH] fix: update get-images.sh script for configurable images --- tools/get-images.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/get-images.sh b/tools/get-images.sh index 34e14585..fd41e582 100755 --- a/tools/get-images.sh +++ b/tools/get-images.sh @@ -4,8 +4,8 @@ # # dynamic list IMAGE_LIST=() -IMAGE_LIST+=($(find $REPO -type f -name metadata.yaml -exec yq '.resources | to_entries | .[] | .value | ."upstream-source"' {} \;)) -IMAGE_LIST+=($(yq '.spawnerFormDefaults | .image | .options | .[]' charms/jupyter-ui/src/spawner_ui_config.yaml)) -IMAGE_LIST+=($(yq '.spawnerFormDefaults | .imageGroupOne | .options | .[]' charms/jupyter-ui/src/spawner_ui_config.yaml)) -IMAGE_LIST+=($(yq '.spawnerFormDefaults | .imageGroupTwo | .options | .[]' charms/jupyter-ui/src/spawner_ui_config.yaml)) +IMAGE_LIST+=($(find . -type f -name metadata.yaml -exec yq '.resources | to_entries | .[] | .value | ."upstream-source"' {} \;)) +IMAGE_LIST+=($(yq '.options | .jupyter-images | .default' charms/jupyter-ui/config.yaml | yq '.[]')) +IMAGE_LIST+=($(yq '.options | .rstudio-images | .default' charms/jupyter-ui/config.yaml | yq '.[]')) +IMAGE_LIST+=($(yq '.options | .vscode-images | .default' charms/jupyter-ui/config.yaml | yq '.[]')) printf "%s\n" "${IMAGE_LIST[@]}"