Skip to content

Commit

Permalink
Refactoring push_images.sh to consume a single source of truth contai…
Browse files Browse the repository at this point in the history
…ning valid images (#2147)

* Refactoring push_images.sh to take in the single source of truth

Made change

* Added single source of truth file

* Fixing issue with image list
  • Loading branch information
mellon-collie committed Jun 29, 2023
1 parent 0a30255 commit 04a9889
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/push_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ set -o errexit
set -o nounset

IMAGE_REGISTRY="ghcr.io/kanisterio"
IMAGES=("mysql-sidecar" "kafka-adobe-s3-sink-connector" "postgres-kanister-tools" "postgresql" "cassandra" "kanister-kubectl-1.18" "mongodb" "es-sidecar" "controller" "kanister-tools" "kafka-adobe-s3-source-connector" "mssql-tools")

IMAGES_NAME_PATH="valid_images.json"

IMAGES=(`cat $IMAGES_NAME_PATH | jq -r .images[]`)

TAG=${1:-"v9.99.9-dev"}

Expand Down
16 changes: 16 additions & 0 deletions build/valid_images.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"image_registry": "ghcr.io/kanisterio",
"images": [ "mysql-sidecar",
"kafka-adobe-s3-sink-connector",
"postgres-kanister-tools",
"postgresql",
"cassandra",
"kanister-kubectl-1.18",
"mongodb",
"es-sidecar",
"controller",
"kanister-tools",
"kafka-adobe-s3-source-connector",
"mssql-tools"],
"tag": "v9.99.9-dev"
}

0 comments on commit 04a9889

Please sign in to comment.