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:
Ronelle Landy 2021-03-19 09:43:17 -04:00
parent cb091f0955
commit 048dfa0a31
1 changed files with 5 additions and 0 deletions

View File

@ -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 }} \