| Alanny Lopez | 634ce36 | 2017-06-23 12:57:05 -0500 | [diff] [blame] | 1 | apiVersion: batch/v1 |
| 2 | kind: Job | ||||
| 3 | metadata: | ||||
| 4 | name: qemubuild${BUILD_ID} | ||||
| 5 | namespace: ${namespace} | ||||
| 6 | labels: | ||||
| 7 | app: qemu | ||||
| 8 | stage: build | ||||
| 9 | spec: | ||||
| 10 | template: | ||||
| 11 | metadata: | ||||
| 12 | name: ${podname} | ||||
| 13 | spec: | ||||
| 14 | nodeSelector: | ||||
| Alanny Lopez | eba5ad4 | 2017-08-18 14:48:37 -0500 | [diff] [blame] | 15 | beta.kubernetes.io/arch: ${ARCH} |
| Alanny Lopez | 634ce36 | 2017-06-23 12:57:05 -0500 | [diff] [blame] | 16 | 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} | ||||