CI: do not build images on aarch64

We publish those images for a while.

Change-Id: Ifc157b43e87e4f77a1c70d98343bd0ef9cc0de79
This commit is contained in:
Marcin Juszkiewicz 2020-04-09 16:27:11 +02:00 committed by Mark Goddard
parent cee03f4b00
commit 3d653038dc
2 changed files with 5 additions and 7 deletions

View File

@ -28,6 +28,7 @@
# TODO(mgoddard): Remove when previous_release is ussuri.
playbook_python_version: "{{ '2' if is_upgrade and previous_release == 'train' and not is_centos8 else '3' }}"
upper_constraints_file: "{{ ansible_env.HOME }}/src/opendev.org/openstack/requirements/upper-constraints.txt"
docker_image_tag_suffix: "{{ '-aarch64' if ansible_architecture == 'aarch64' else '' }}"
- name: Install xfsprogs package for Swift filesystems
become: true
@ -54,12 +55,6 @@
- item.branch == zuul.branch
with_items: "{{ zuul['items'] }}"
- name: enable building images on AArch64
set_fact:
need_build_image: true
when:
- ansible_architecture == 'aarch64'
# NOTE(yoctozepto): required to template template_overrides.j2 for Zuul
- name: Include kolla Zuul vars if building new images
include_vars:
@ -262,7 +257,7 @@
- name: Set facts for actions
set_fact:
# NOTE(yoctozepto): no support for upgrades for now
docker_image_tag: "{{ build_image_tag if need_build_image else zuul.branch | basename }}"
docker_image_tag: "{{ build_image_tag if need_build_image else (zuul.branch | basename) ~ docker_image_tag_suffix }}"
docker_image_prefix: "{{ 'primary:4000/lokolla/' if need_build_image else 'kolla/' }}"
# NOTE(mgoddard): We are using the script module here and later to ensure

View File

@ -47,6 +47,9 @@ openstack_tag: "{{ build_image_tag }}"
{% else %}
# use docker hub images
docker_namespace: "kolla"
{% if docker_image_tag_suffix %}
openstack_tag_suffix: "{{ docker_image_tag_suffix }}"
{% endif %}
{% if need_build_image and is_previous_release %}
# NOTE(mgoddard): Ensure that the insecure local registry is trusted, since it
# will be the source of images during the upgrade.