-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmake_release.sh
executable file
·47 lines (36 loc) · 1.42 KB
/
make_release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
old_version=$1
new_version=$2
if [ ! -z "$1" ] && [ ! -z "$2" ]
then
echo "Version $1 -> $2"
find . -name "*.sh" -exec grep -Hn ":$old_version" '{}' \; -exec sed -i "s/:$old_version/:$new_version/g" {} \;
find . -name "*.yaml" -exec grep -Hn ":$old_version" '{}' \; -exec sed -i "s/:$old_version/:$new_version/g" {} \;
else
echo "$1"
echo "$2"
echo "Straigt build, no version change"
fi
root_dir=$(pwd)
./build.sh swir.yaml $new_version
cd ../swir-demo-clients
./build.sh $2 $root_dir
cd $root_dir
cd ../swir-operator
./make_release.sh $1 $2
if [ ! -z "$2" ]
then
cd $root_dir
docker push swir/swir:$new_version
docker push swir/swir-example-pubsub-configurator:$new_version
docker push swir/swir-example-pubsub-python-processor:$new_version
docker push swir/swir-example-pubsub-java-processor:$new_version
docker push swir/swir-example-pubsub-java-source:$new_version
docker push swir/swir-example-pubsub-python-sink:$new_version
docker push swir/swir-example-si-configurator:$new_version
docker push swir/swir-example-si-python-http-server:$new_version
docker push swir/swir-example-si-python-grpc-client:$new_version
docker push swir/swir-operator:${new_version}
#docker push swir/swir-example-aws-pubsub-configurator:$new_version
#docker push swir/swir-example-aws-si-configurator:$new_version
fi