[podman] Fix cross dependency image build

When the kolla-ansible project has a cross dependency on
the kolla project, CI have to build an image from that change
locally. However, Podman refuses to push to localhost, so it is
necessary to set the local repo as insecure for the test.

Change-Id: I786b22ff0cd581f90ba4bec08842651a6509a745
This commit is contained in:
Michal Arbet 2023-11-02 01:44:32 +01:00
parent 255ce5c11e
commit c5f3f23e05
2 changed files with 5 additions and 1 deletions

View File

@ -58,7 +58,7 @@
# buster see https://github.com/docker/for-linux/issues/711.
push: "{{ base_distro != 'debian' }}"
base: "{{ base_distro }}"
registry: "127.0.0.1:4000"
registry: "primary:4000"
namespace: lokolla
tag: "{{ build_image_tag }}"
template_override: /etc/kolla/template_overrides.j2

View File

@ -14,6 +14,10 @@ kolla_base_distro: "{{ base_distro }}"
network_interface: "{{ api_interface_name }}"
network_address_family: "{{ address_family }}"
kolla_container_engine: "{{ container_engine }}"
{% if container_engine == 'podman' %}
podman_registry: "primary:4000"
podman_registry_insecure: "yes"
{% endif %}
docker_restart_policy: "no"
docker_custom_config:
debug: true