blob: d5da30028ad16fb626c95bdff28276d047db3877 [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:
15 worker: \"true\"
16 arch: ${ARCH}
17 volumes:
18 - name: home
19 persistentVolumeClaim:
20 claimName: ${hclaim}
21 - name: qemudir
22 persistentVolumeClaim:
23 claimName: ${qclaim}
24 restartPolicy: Never
25 hostNetwork: True
26 containers:
27 - image: ${imgname}
28 name: builder
29 command: [\"${WORKSPACE}/build.sh\"]
30 workingDir: ${HOME}
31 env:
32 - name: WORKSPACE
33 value: ${WORKSPACE}
34 - name: qemudir
35 value: ${qemudir}
36 volumeMounts:
37 - name: home
38 mountPath: ${HOME}
39 - name: qemudir
40 mountPath: ${qemudir}
41 imagePullSecrets:
42 - name: ${imgplsec}