diff options
| author | Zuul <zuul@review.opendev.org> | 2020-04-16 15:59:13 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2020-04-16 15:59:13 +0000 |
| commit | 2ba903de0d5f96d22cfc42b68281a75d32907620 (patch) | |
| tree | 5b21b4e9ba7ef8c597b71a0405045df0d9078abb /tests | |
| parent | 87984f54256eb150a92191336773a8d5f2cbaed9 (diff) | |
| parent | 3d653038dc72fa344ddb34e306fb52e2a75c6579 (diff) | |
| download | kolla-ansible-2ba903de0d5f96d22cfc42b68281a75d32907620.tar.gz kolla-ansible-2ba903de0d5f96d22cfc42b68281a75d32907620.zip | |
Merge "CI: do not build images on aarch64"
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/run.yml | 9 | ||||
| -rw-r--r-- | tests/templates/globals-default.j2 | 3 |
2 files changed, 5 insertions, 7 deletions
diff --git a/tests/run.yml b/tests/run.yml index 66251ca28..cd307ba95 100644 --- a/tests/run.yml +++ b/tests/run.yml @@ -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 diff --git a/tests/templates/globals-default.j2 b/tests/templates/globals-default.j2 index 626c84d95..613ffcc89 100644 --- a/tests/templates/globals-default.j2 +++ b/tests/templates/globals-default.j2 @@ -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. |
