47 lines
1.3 KiB
Django/Jinja
47 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"
|
|
|
|
- name: image-rust-xwin-ci
|
|
type: registry-image
|
|
icon: docker
|
|
source:
|
|
repository: "{{ registry_url }}/rust-xwin-ci"
|
|
{% endmacro %}
|
|
|
|
{% macro jobs() -%}
|
|
- name: rust-xwin
|
|
plan:
|
|
- get: repo
|
|
trigger: true
|
|
- in_parallel:
|
|
fail_fast: true
|
|
steps:
|
|
- task: build-rust-xwin
|
|
file: repo/tasks/build-image.yml
|
|
vars:
|
|
context: images/rust-xwin
|
|
target: rust-xwin
|
|
dockerfile: ''
|
|
output_mapping:
|
|
image: image-rust-xwin
|
|
- task: build-rust-xwin-ci
|
|
file: repo/tasks/build-image.yml
|
|
vars:
|
|
context: images/rust-xwin
|
|
target: rust-xwin-ci
|
|
dockerfile: ''
|
|
output_mapping:
|
|
image: image-rust-xwin-ci
|
|
- in_parallel:
|
|
steps:
|
|
- put: image-rust-xwin
|
|
params:
|
|
image: image-rust-xwin/image.tar
|
|
- put: image-rust-xwin-ci
|
|
params:
|
|
image: image-rust-xwin-ci/image.tar
|
|
{% endmacro %}
|