-
Notifications
You must be signed in to change notification settings - Fork 6
/
entrypoint.sh
executable file
·31 lines (17 loc) · 1.19 KB
/
entrypoint.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
git clone https://github.com/devtron-labs/devtron.git
cd devtron
git remote add target https://${INPUT_GITEE_TARGET_USERNAME}:${INPUT_GITEE_TARGET_TOKEN}@${INPUT_GITEE_TARGET_URL#https://}
git checkout main
git remote -v
sed -i "s/LTAG=.*/LTAG=\"main\";/" manifests/installation-script
sed -i "s/REPO_RAW_URL=.*/REPO_RAW_URL=\"https:\/\/gitee.com\/devtron-labs\/devtron\/raw\/\";/" manifests/installation-script
sed -i "s/url:.*/url: https:\/\/gitee.com\/devtron-labs\/devtron\/raw\/main\/manifests\/installation-script/" manifests/install/devtron-installer.yaml
sed -i "29 s/value:.*/value: https:\/\/gitee.com\/devtron-labs\/devtron.git/" manifests/yamls/migrator.yaml
sed -i "65 s/value:.*/value: https:\/\/gitee.com\/devtron-labs\/devtron.git/" manifests/yamls/migrator.yaml
sed -i "103 s/value:.*/value: https:\/\/gitee.com\/devtron-labs\/git-sensor.git/" manifests/yamls/migrator.yaml
sed -i "141 s/value:.*/value: https:\/\/gitee.com\/devtron-labs\/lens.git/" manifests/yamls/migrator.yaml
git config --global user.email ${INPUT_GITEE_TARGET_USEREMAIL}
git config --global user.name ${INPUT_GITEE_TARGET_USERNAME}
git add .
git commit -m "updated github link to gitee"
git push -f --all target