|
@@ -0,0 +1,29 @@
|
|
1
|
+clone:
|
|
2
|
+ git:
|
|
3
|
+ image: plugins/git
|
|
4
|
+ recursive=false
|
|
5
|
+
|
|
6
|
+pipeline:
|
|
7
|
+
|
|
8
|
+ pull_build:
|
|
9
|
+ image: sots:latest
|
|
10
|
+ commands:
|
|
11
|
+ - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
|
|
12
|
+ - eval $(ssh-agent -s)
|
|
13
|
+ - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
|
|
14
|
+ - mkdir -p ~/.ssh
|
|
15
|
+ - chmod 700 ~/.ssh
|
|
16
|
+ - echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
|
|
17
|
+ - chmod 644 ~/.ssh/known_hosts
|
|
18
|
+ - echo "$SSH_HOST" > ~/.ssh/config
|
|
19
|
+ - git submodule sync --recursive
|
|
20
|
+ - git submodule update --init
|
|
21
|
+
|
|
22
|
+ - mkdir -p ../tools
|
|
23
|
+ - rm -rf ../tools/v_tools
|
|
24
|
+ - cp -r /sots-tools/v_tools ../tools
|
|
25
|
+ - rm -f /base/bpre0.gba
|
|
26
|
+ - cp /bpre0.gba ./base/bpre0.gba
|
|
27
|
+ - chmod 644 ./base/bpre0.gba
|
|
28
|
+
|
|
29
|
+ - make all
|