blob: 30a7a51435335d05786651112b60952f9a158a33 [file] [log] [blame]
Alanny Lopez0e8ad992017-06-19 15:45:23 -05001apiVersion: batch/v1
2kind: Job
3metadata:
4 name: openbmc${BUILD_ID}-${target}
5 namespace: ${namespace}
6 labels:
7 app: openbmc
8 stage: build
9spec:
10 template:
11 metadata:
12 name: ${podname}
13 labels:
14 target: ${target}
15 spec:
16 nodeSelector:
17 worker: \"true\"
18 arch: ${ARCH}
19 volumes:
20 - name: home
21 persistentVolumeClaim:
22 claimName: ${hclaim}
23 - name: sscdir
24 persistentVolumeClaim:
25 claimName: ${sclaim}
26 - name: obmccache
27 persistentVolumeClaim:
28 claimName: ${oclaim}
29 restartPolicy: Never
30 hostNetwork: True
31 containers:
32 - image: ${imgname}
33 name: builder
34 command: [\"${WORKSPACE}/build.sh\"]
35 workingDir: ${HOME}
36 env:
37 - name: WORKSPACE
38 value: ${WORKSPACE}
Alanny Lopez723fea62017-09-12 11:22:17 -050039 - name: builddir
40 value: ${builddir}
Alanny Lopez0e8ad992017-06-19 15:45:23 -050041 securityContext:
42 capabilities:
43 add:
44 - SYS_ADMIN
45 volumeMounts:
46 - name: home
47 mountPath: ${HOME}
48 - name: sscdir
49 mountPath: ${sscdir}
50 - name: obmccache
51 mountPath: ${obmcext}
52 imagePullSecrets:
53 - name: ${imgplsec}