forked from trion-development/docker-ng-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·57 lines (50 loc) · 1.29 KB
/
build.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
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
# cd docker-ng-cli
git checkout master
git pull --rebase
git checkout -b ${VERSION}
sed -r -i "s@(.*)NG_CLI_VERSION=.*@\1NG_CLI_VERSION=${VERSION}@g" Dockerfile*
sed -r -i "s@latest@${VERSOPM}@g" hooks/multi-arch-manifest.yaml
git commit -a -m "update to ${VERSION}"
git checkout master
${MASTER} && git merge ${VERSION}
git push -u origin ${VERSION}
cd ..
echo "Waiting for build docker-ng-cli"
sleep 10m #amd64
sleep 20m #aarch64
sleep 20m #arm32v7
echo "Build should be done"
cd docker-ng-cli-karma
git checkout master
git pull --rebase
git checkout -b ${VERSION}
sed -i -r "s@(.*)trion/ng-cli:.*@\1trion/ng-cli:${VERSION}@g" Dockerfile
git commit -a -m "update to ${VERSION}"
git checkout master
${MASTER} && git merge ${VERSION}
git push -u origin ${VERSION}
cd ..
echo "Waiting for build docker-ng-cli-karma"
sleep 13m
echo "Build should be done"
cd docker-ng-cli-e2e
git checkout master
git pull --rebase
git checkout -b ${VERSION}
sed -i -r "s@(.*)trion/ng-cli-karma:.*@\1trion/ng-cli-karma:${VERSION}@g" Dockerfile
git commit -a -m "update to ${VERSION}"
git checkout master
${MASTER} && git merge ${VERSION}
git push -u origin ${VERSION}
cd ..
echo "Pushing latest..."
cd docker-ng-cli
git push --all
cd ..
cd docker-ng-cli-karma
git push --all
cd ..
cd docker-ng-cli-e2e
git push --all
cd ..