blob: 04a8c4ea3db2930169e4b54c16962d23c7b689f1 [file] [log] [blame]
Alanny Lopez634ce362017-06-23 12:57:05 -05001apiVersion: batch/v1
2kind: Job
3metadata:
4 name: qemubuild${BUILD_ID}
5 namespace: ${namespace}
6 labels:
7 app: qemu
8 stage: build
9spec:
10 template:
11 metadata:
12 name: ${podname}
13 spec:
14 nodeSelector:
Alanny Lopezeba5ad42017-08-18 14:48:37 -050015 beta.kubernetes.io/arch: ${ARCH}
Alanny Lopez634ce362017-06-23 12:57:05 -050016 volumes:
Alanny Lopeza6b7d4b2017-10-19 09:58:25 -050017 - name: workspace
Alanny Lopez634ce362017-06-23 12:57:05 -050018 persistentVolumeClaim:
Alanny Lopeza6b7d4b2017-10-19 09:58:25 -050019 claimName: ${wclaim}
Alanny Lopez634ce362017-06-23 12:57:05 -050020 - name: qemudir
21 persistentVolumeClaim:
22 claimName: ${qclaim}
23 restartPolicy: Never
24 hostNetwork: True
25 containers:
26 - image: ${imgname}
27 name: builder
28 command: [\"${WORKSPACE}/build.sh\"]
29 workingDir: ${HOME}
30 env:
31 - name: WORKSPACE
32 value: ${WORKSPACE}
33 - name: qemudir
34 value: ${qemudir}
35 volumeMounts:
Alanny Lopeza6b7d4b2017-10-19 09:58:25 -050036 - name: workspace
37 mountPath: ${HOME}/workspace
Alanny Lopez634ce362017-06-23 12:57:05 -050038 - name: qemudir
39 mountPath: ${qemudir}
40 imagePullSecrets:
41 - name: ${imgplsec}