
This adds three roles which can be used to build a docker image promotion system. Change-Id: Iefd9278cdb90bbbaab93a4d23c055e9289fde5ba
14 lines
438 B
YAML
14 lines
438 B
YAML
- name: Build a docker image
|
|
command: >-
|
|
docker build {{ item.path | default('.') }} -f Dockerfile
|
|
{% if target | default(false) -%}
|
|
--target {{ target }}
|
|
{% endif -%}
|
|
{% for build_arg in item.build_args | default([]) -%}
|
|
--build-arg {{ build_arg }}
|
|
{% endfor -%}
|
|
--tag {{ item.repository }}:change_{{ zuul.change }}
|
|
args:
|
|
chdir: "{{ zuul_work_dir }}/{{ item.context }}"
|
|
loop: "{{ images }}"
|