1
Fork 0
ci-images/pipelines/jobs/simple-image.yml.j2
Lucas Schwiderski 29faf1e86c
Run builds in series
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
2024-08-26 16:22:51 +02:00

24 lines
635 B
Django/Jinja

{% macro jobs(job) -%}
- name: {{ job.name }}
serial: true
plan:
- get: repo
trigger: true
- task: build-image
privileged: true
file: repo/tasks/build-image.yml
vars:
context: repo/images/{{ job.name }}
dockerfile: ''
target: ''
{%- if "args" in job %}
params:
{%- for name, value in job.args.items() %}
BUILD_ARG_{{name}}: "{{value}}"
{%- endfor %}
{%- endif %}
- put: image-{{ job.name }}
inputs: detect
params: { image: image/image.tar }
no_get: true
{%- endmacro -%}