Add option to include labels in dockerfiles
When building containers, add labels to the dockerfiles using the --label argument if dockerfile_labels is defined. Change-Id: Ib797bde92a0328e0c1baf3779c8a047729979e5a
This commit is contained in:
parent
cb091f0955
commit
048dfa0a31
|
@ -78,6 +78,11 @@ openstack tripleo container image build \
|
|||
{% if build_timeout is defined %}
|
||||
--build-timeout {{ build_timeout }} \
|
||||
{% endif %}
|
||||
{% if dockerfile_labels is defined %}
|
||||
{% for item in dockerfile_labels %}
|
||||
--label {{ item }} \
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if volume_mounts is defined %}
|
||||
{% for item in volume_mounts %}
|
||||
--volume {{ item }} \
|
||||
|
|
Loading…
Reference in New Issue