Since they I/O bound off of the same hardware, and sometimes also CPU bound when compiling things, running them in parallel only slows things down. Closes: #28
51 lines
1.3 KiB
Django/Jinja
51 lines
1.3 KiB
Django/Jinja
{% macro resources(registry_url) -%}
|
|
- name: image-rust-xwin
|
|
type: registry-image
|
|
icon: docker
|
|
source:
|
|
repository: "{{ registry_url }}/rust-xwin"
|
|
tag: latest
|
|
|
|
- name: image-rust-xwin-ci
|
|
type: registry-image
|
|
icon: docker
|
|
source:
|
|
repository: "{{ registry_url }}/rust-xwin-ci"
|
|
tag: latest
|
|
{% endmacro %}
|
|
|
|
{% macro jobs() -%}
|
|
- name: rust-xwin
|
|
serial: true
|
|
plan:
|
|
- get: repo
|
|
trigger: true
|
|
- task: build-rust-xwin
|
|
file: repo/tasks/build-image.yml
|
|
privileged: true
|
|
vars:
|
|
context: repo/images/rust-xwin
|
|
target: rust-xwin
|
|
dockerfile: ''
|
|
output_mapping:
|
|
image: image-rust-xwin
|
|
- task: build-rust-xwin-ci
|
|
file: repo/tasks/build-image.yml
|
|
privileged: true
|
|
vars:
|
|
context: repo/images/rust-xwin
|
|
target: rust-xwin-ci
|
|
dockerfile: ''
|
|
output_mapping:
|
|
image: image-rust-xwin-ci
|
|
- in_parallel:
|
|
steps:
|
|
- put: image-rust-xwin
|
|
inputs: detect
|
|
params: { image: image-rust-xwin/image.tar }
|
|
no_get: true
|
|
- put: image-rust-xwin-ci
|
|
inputs: detect
|
|
params: { image: image-rust-xwin-ci/image.tar }
|
|
no_get: true
|
|
{% endmacro %}
|