-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate-bundle.sh
More file actions
executable file
·57 lines (51 loc) · 1.27 KB
/
create-bundle.sh
File metadata and controls
executable file
·57 lines (51 loc) · 1.27 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
# API
echo "UPDATE API"
cd api/
git pull
TAG_API=`git tag -l --sort v:refname | tail -1`
echo $TAG_API
git reset --hard $TAG_API
cd ..
# Builder-python
echo "UPDATE BUILDER PYTHON"
cd builder-python/
git pull
TAG_BUILDER_PYTHON=`git tag -l --sort v:refname | tail -1`
echo $TAG_BUILDER_PYTHON
git reset --hard $TAG_BUILDER_PYTHON
cd ..
# Client
echo "UPDATE CLIENT"
cd client/
git pull
TAG_CLIENT=`git tag -l --sort v:refname | tail -1`
echo $TAG_CLIENT
git reset --hard $TAG_CLIENT
cd ..
# Database
echo "UPDATE DATABASE"
cd database/
git pull
TAG_DATABASE=`git tag -l --sort v:refname | tail -1`
echo $TAG_DATABASE
git reset --hard $TAG_DATABASE
cd ..
# Monitor
echo "UPDATE MONITOR"
cd monitor/
git pull
TAG_MONITOR=`git tag -l --sort v:refname | tail -1`
echo $TAG_MONITOR
git reset --hard $TAG_MONITOR
cd ..
# Docker
echo "UPDATE DOCKER"
cd docker
git pull
git checkout main
sed -i -e "s/gpao\/database:*.*.*/gpao\/database:$TAG_DATABASE/g" docker-compose.yml
sed -i -e "s/gpao\/api-gpao:*.*.*/gpao\/api-gpao:$TAG_API/g" docker-compose.yml
sed -i -e "s/gpao\/monitor-gpao:*.*.*/gpao\/monitor-gpao:$TAG_MONITOR/g" docker-compose.yml
sed -i -e "s/gpao\/client-gpao:*.*.*/gpao\/client-gpao:$TAG_CLIENT/g" docker-compose.yml
git commit -am "Change version docker-compose.yml" && git push
cd ..