Add labels to build-container-image
The "docker build" path is missing the "--label" arguments which are present in all other paths (docker buildx in both build-container-image and build-docker-image roles). This means that images are being built without expected metadata labels. This change adds the extra arguments to match. Change-Id: I607ae89cace87fe87b6dcfb95a1bae4fca516d3c
This commit is contained in:
parent
3db2bfe8d1
commit
839de7f899
@ -26,6 +26,13 @@
|
||||
--tag {{ zj_image.repository }}:{{ tag_prefix }}{{ tag }}
|
||||
--tag {{ zj_image.repository }}:{{ tag }}
|
||||
{% endfor -%}
|
||||
{% for label in zj_image.labels | default([]) -%}
|
||||
--label "{{ label }}"
|
||||
{% endfor %}
|
||||
{% if zuul.change | default(false) -%}
|
||||
--label "org.zuul-ci.change={{ zuul.change }}"
|
||||
{% endif -%}
|
||||
--label "org.zuul-ci.change_url={{ zuul.change_url }}"
|
||||
args:
|
||||
chdir: "{{ zuul_work_dir }}/{{ zj_image.context }}"
|
||||
environment: "{{ container_build_extra_env }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user