blob: 0b9ba46175a48aca54230ce905d24f761c3da4e8 [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:
17 - name: home
18 persistentVolumeClaim:
19 claimName: ${hclaim}
20 - 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:
36 - name: home
37 mountPath: ${HOME}
38 - name: qemudir
39 mountPath: ${qemudir}
40 imagePullSecrets:
41 - name: ${imgplsec}