22set -euxo pipefail
33
44echo " Setting Variables"
5- read -p " Bunlde image path : " bundleImage
6- read -p " Index image path : " indexImage
5+ read -p " Bunlde image: " bundleImage
6+ read -p " Index image tag : " indexImage
77read -p " docker or podman: " containerTool
88
99echo " building opm"
@@ -13,14 +13,14 @@ echo "building prometheus bundles"
1313./bin/opm alpha bundle build --directory manifests/prometheus/0.15.0 --tag $bundleImage :0.15.0 --package prometheus --channels preview --default preview
1414./bin/opm alpha bundle build --directory manifests/prometheus/0.22.2 --tag $bundleImage :0.22.2 --package prometheus --channels preview --default preview
1515echo " pushing prometheus bundles"
16- docker push $bundleImage :0.14.0
17- docker push $bundleImage :0.15.0
18- docker push $bundleImage :0.22.2
16+ $containerTool push $bundleImage :0.14.0
17+ $containerTool push $bundleImage :0.15.0
18+ $containerTool push $bundleImage :0.22.2
1919echo " building index image with prometheus"
2020./bin/opm index add -b=" $bundleImage :0.14.0,$bundleImage :0.15.0,$bundleImage :0.22.2" -t " $indexImage " -c=" $containerTool "
2121echo " pushing index image"
22- docker push $indexImage
23- echo " sleep for 1min before pulling image"
24- sleep 1m
22+ $containerTool push $indexImage
23+ echo " sleep for 30s before pulling image"
24+ sleep 30s
2525echo " exporting from index"
2626./bin/opm index export -i=" $indexImage " -o=" prometheus" -c=" $containerTool "
0 commit comments