-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuildspec.yml
37 lines (36 loc) · 1.4 KB
/
buildspec.yml
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
version: 0.2
env:
parameter-store:
GITHUB_LOGIN : GITHUB_LOGIN
GITHUB_PASSWORD : GITHUB_PASSWORD
id_rsa_base64: id_rsa_base64
phases:
build:
commands:
- git clone https://$GITHUB_LOGIN:[email protected]/shadow-robot/sr_dexterous_hand_and_arm_documentation.git
- cd sr_dexterous_hand_and_arm_documentation
- git submodule init
- git pull --recurse-submodules
- cd docs/sr_dexterous_hand_documentation
- git checkout devel
- git pull
- cd ..
- git add --all
- if git -c user.name='Devops' -c user.email='[email protected]' commit -m "Automatic updating submodules"; then git push origin devel; fi
- cd ../../../
- echo $id_rsa_base64 >> id_rsa_base64
- base64 -d id_rsa_base64 > ~/.ssh/id_rsa
- chmod 400 ~/.ssh/id_rsa
- ssh-keyscan github.com >> ~/.ssh/known_hosts
- eval $(ssh-agent)
- ssh-add ~/.ssh/id_rsa
- git clone [email protected]:shadow-robot/sr_dexterous_hand_glove_documentation.git
- cd sr_dexterous_hand_glove_documentation
- git submodule init
- git pull --recurse-submodules
- cd docs/sr_dexterous_hand_documentation
- git checkout devel
- git pull
- cd ..
- git add --all
- if git -c user.name='Devops' -c user.email='[email protected]' commit -m "Automatic updating submodules"; then git push origin devel; fi