Modified container exclude list with distros

Why?
- Release has different containers exclude list
- We are using same list for different distros
- To track multiple release and multiple distros

https://review.opendev.org/c/openstack/tripleo-ci/+/813619 adds
the container exclude list with distros.

Signed-off-by: Amol Kahat <amolkahat@gmail.com>
Change-Id: Ic7f5910569abe7d0a38e3314baaa8cc22d991263
This commit is contained in:
Amol Kahat 2021-10-12 19:17:19 +05:30 committed by chandan kumar
parent 32953e32e1
commit e32fe80d4e
2 changed files with 2 additions and 1 deletions

View File

@ -32,3 +32,4 @@ docker_prep_prefix: >-
containers_base_image: "{{ job.containers_base_image|default('ubi8') }}"
container_registry_image: quay.io/tripleoci/registry:2
container_registry_image_fallback: trunk.registry.rdoproject.org/ceph/registry:2
container_exclude_distro: "{{ ansible_distribution|lower }}{{ ansible_distribution_major_version}}"

View File

@ -116,7 +116,7 @@
tripleo_container_image_build_prefix: "{{ docker_prep_prefix }}"
tripleo_container_image_build_timeout: 10000
tripleo_container_image_build_base: "{{ containers_base_image }}"
tripleo_container_image_build_excludes: "{{ exclude_containers[branch]|default([]) }}"
tripleo_container_image_build_excludes: "{{ exclude_containers[branch][container_exclude_distro]|default([]) }}"
tripleo_container_image_build_tcib_extras: "{{ tcib_extras | default([]) }}"
tripleo_container_image_build_distro: "{{ (ansible_distribution == 'RedHat') | ternary('rhel', 'centos') }}"