Fix image build regex
Turns out kolla_docker_registry is always defined, but is sometimes an empty string or None. It defaults to None. Before this change we always sent "--registry" but the kolla build CLI would pick up our regex as the parameter associated with "--registry" so we would get a strange image tag, and still build all the images.
This commit is contained in:
parent
a98b25452e
commit
63cf1abf9f
@ -47,7 +47,7 @@
|
||||
kolla-build \
|
||||
--config-dir {{ kolla_build_config_path }} \
|
||||
{% if item.type is defined %}--type {{ item.type }}{% endif %} \
|
||||
{% if kolla_docker_registry is defined %}--registry {{ kolla_docker_registry }}{% endif %} \
|
||||
{% if kolla_docker_registry != "" and kolla_docker_registry != None %}--registry {{ kolla_docker_registry }}{% endif %} \
|
||||
{% if push_images | bool %}--push{% endif %} \
|
||||
{{ item.regexes }} 2>&1 | tee --append {{ kolla_build_log_path }}
|
||||
with_items: "{{ container_image_sets }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user