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: |
Alanny Lopez | a6b7d4b | 2017-10-19 09:58:25 -0500 | [diff] [blame] | 17 | - name: workspace |
Alanny Lopez | 634ce36 | 2017-06-23 12:57:05 -0500 | [diff] [blame] | 18 | persistentVolumeClaim: |
Alanny Lopez | a6b7d4b | 2017-10-19 09:58:25 -0500 | [diff] [blame] | 19 | claimName: ${wclaim} |
Alanny Lopez | 634ce36 | 2017-06-23 12:57:05 -0500 | [diff] [blame] | 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: |
Alanny Lopez | a6b7d4b | 2017-10-19 09:58:25 -0500 | [diff] [blame] | 36 | - name: workspace |
| 37 | mountPath: ${HOME}/workspace |
Alanny Lopez | 634ce36 | 2017-06-23 12:57:05 -0500 | [diff] [blame] | 38 | - name: qemudir |
| 39 | mountPath: ${qemudir} |
| 40 | imagePullSecrets: |
| 41 | - name: ${imgplsec} |