-
Notifications
You must be signed in to change notification settings - Fork 2
/
update-regional-branches.sh
executable file
·67 lines (67 loc) · 2.16 KB
/
update-regional-branches.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
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
# PDX
git branch PDX
git checkout PDX
sed -i -e "s/\*\*Sydney\*\*/\*\*Oregon\*\*/g" Readme.md
sed -i -e "s/\*\*AWS-AP-Sydney\*\*/\*\*US-West\*\*/g" Readme.md
sed -i -e "s|https://app.au1.sysdig.com|https://us2.app.sysdig.com|g" Readme.md
sed -i -e "s|region.png|region-pdx.png|g" Readme.md
sed -i -e "s|sysdiglogin.png|sysdiglogin-pdx.png|g" Readme.md
rm ./Readme.md-e
git add ./Readme.md
git commit -m "PDX Branch"
git push --set-upstream origin PDX
git checkout main
sleep 10
# SFO
git branch SFO
git checkout SFO
sed -i -e "s/\*\*Sydney\*\*/\*\*N. California\*\*/g" Readme.md
sed -i -e "s/\*\*AWS-AP-Sydney\*\*/\*\*GCP-US-West\*\*/g" Readme.md
sed -i -e "s|https://app.au1.sysdig.com|https://app.us4.sysdig.com|g" Readme.md
sed -i -e "s|region.png|region-sfo.png|g" Readme.md
sed -i -e "s|sysdiglogin.png|sysdiglogin-sfo.png|g" Readme.md
rm ./Readme.md-e
git add ./Readme.md
git commit -m "SFO Branch"
git push --set-upstream origin SFO
git checkout main
sleep 10
# FRA
git branch FRA
git checkout FRA
sed -i -e "s/\*\*Sydney\*\*/\*\*Frankfurt\*\*/g" Readme.md
sed -i -e "s/\*\*AWS-AP-Sydney\*\*/\*\*EU-Central\*\*/g" Readme.md
sed -i -e "s|https://app.au1.sysdig.com|https://eu1.app.sysdig.com|g" Readme.md
sed -i -e "s|region.png|region-fra.png|g" Readme.md
sed -i -e "s|sysdiglogin.png|sysdiglogin-fra.png|g" Readme.md
rm ./Readme.md-e
git add ./Readme.md
git commit -m "FRA Branch"
git push --set-upstream origin FRA
git checkout main
sleep 10
# CDG
git branch CDG
git checkout CDG
sed -i -e "s/\*\*Sydney\*\*/\*\*Paris\*\*/g" Readme.md
sed -i -e "s/\*\*AWS-AP-Sydney\*\*/\*\*EU-Central\*\*/g" Readme.md
sed -i -e "s|https://app.au1.sysdig.com|https://eu1.app.sysdig.com|g" Readme.md
sed -i -e "s|region.png|region-cdg.png|g" Readme.md
sed -i -e "s|sysdiglogin.png|sysdiglogin-cdg.png|g" Readme.md
rm ./Readme.md-e
git add ./Readme.md
git commit -m "CDG Branch"
git push --set-upstream origin CDG
git checkout main
sleep 10
# MEL
git branch MEL
git checkout MEL
sed -i -e "s/\*\*Sydney\*\*/\*\*Melbourne\*\*/g" Readme.md
sed -i -e "s|region.png|region-mel.png|g" Readme.md
rm ./Readme.md-e
git add ./Readme.md
git commit -m "MEL Branch"
git push --set-upstream origin MEL
git checkout main