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: |
Alanny Lopez | 1246b03 | 2018-02-24 23:34:55 -0600 | [diff] [blame] | 12 | name: ${pod_name} |
Alanny Lopez | 634ce36 | 2017-06-23 12:57:05 -0500 | [diff] [blame] | 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 | 1246b03 | 2018-02-24 23:34:55 -0600 | [diff] [blame] | 19 | claimName: ${w_claim} |
| 20 | - name: qemu-dir |
Alanny Lopez | 634ce36 | 2017-06-23 12:57:05 -0500 | [diff] [blame] | 21 | persistentVolumeClaim: |
Alanny Lopez | 1246b03 | 2018-02-24 23:34:55 -0600 | [diff] [blame] | 22 | claimName: ${q_claim} |
Alanny Lopez | 634ce36 | 2017-06-23 12:57:05 -0500 | [diff] [blame] | 23 | restartPolicy: Never |
| 24 | hostNetwork: True |
| 25 | containers: |
Alanny Lopez | 1246b03 | 2018-02-24 23:34:55 -0600 | [diff] [blame] | 26 | - image: ${img_name} |
Alanny Lopez | 634ce36 | 2017-06-23 12:57:05 -0500 | [diff] [blame] | 27 | name: builder |
| 28 | command: [\"${WORKSPACE}/build.sh\"] |
| 29 | workingDir: ${HOME} |
| 30 | env: |
| 31 | - name: WORKSPACE |
| 32 | value: ${WORKSPACE} |
Alanny Lopez | 1246b03 | 2018-02-24 23:34:55 -0600 | [diff] [blame] | 33 | - name: qemu-dir |
| 34 | value: ${qemu_dir} |
Alanny Lopez | 634ce36 | 2017-06-23 12:57:05 -0500 | [diff] [blame] | 35 | volumeMounts: |
Alanny Lopez | a6b7d4b | 2017-10-19 09:58:25 -0500 | [diff] [blame] | 36 | - name: workspace |
| 37 | mountPath: ${HOME}/workspace |
Alanny Lopez | 1246b03 | 2018-02-24 23:34:55 -0600 | [diff] [blame] | 38 | - name: qemu-dir |
| 39 | mountPath: ${qemu_dir} |
Alanny Lopez | 634ce36 | 2017-06-23 12:57:05 -0500 | [diff] [blame] | 40 | imagePullSecrets: |
Alanny Lopez | 1246b03 | 2018-02-24 23:34:55 -0600 | [diff] [blame] | 41 | - name: ${img_pl_sec} |