2
2
set -euxo pipefail
3
3
4
4
echo " 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
7
7
read -p " docker or podman: " containerTool
8
8
9
9
echo " building opm"
@@ -13,14 +13,14 @@ echo "building prometheus bundles"
13
13
./bin/opm alpha bundle build --directory manifests/prometheus/0.15.0 --tag $bundleImage :0.15.0 --package prometheus --channels preview --default preview
14
14
./bin/opm alpha bundle build --directory manifests/prometheus/0.22.2 --tag $bundleImage :0.22.2 --package prometheus --channels preview --default preview
15
15
echo " 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
19
19
echo " building index image with prometheus"
20
20
./bin/opm index add -b=" $bundleImage :0.14.0,$bundleImage :0.15.0,$bundleImage :0.22.2" -t " $indexImage " -c=" $containerTool "
21
21
echo " 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
25
25
echo " exporting from index"
26
26
./bin/opm index export -i=" $indexImage " -o=" prometheus" -c=" $containerTool "
0 commit comments