summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Goddard <mark@stackhpc.com>2020-01-30 12:19:13 +0000
committerMark Goddard <mark@stackhpc.com>2020-01-30 12:19:13 +0000
commitcde5405b90ca18fcc498afd9cd09a7e7fd68b6f2 (patch)
tree6a21dfda4985718290640da1395ddd508d9e2185
parent8be020e1f15013bdc5477b4938a75c5fccfcf683 (diff)
downloadkolla-cde5405b90ca18fcc498afd9cd09a7e7fd68b6f2.tar.gz
kolla-cde5405b90ca18fcc498afd9cd09a7e7fd68b6f2.zip
CI: Fix tag suffix logic for CentOS 8
On CentOS, ansible_distribution is 'CentOS' rather than 'centos'. Our logic when setting the image tag for publisher jobs is incorrect, meaning that the centos8 publisher publishes images as 'master' rather than 'master-centos8'. Since this job only has two images it is likely to complete before the CentOS 7 publisher, so hopefully images will not be broken for long. This change fixes the issue by using a case-insensitive comparison. Change-Id: I66c93e07fe5c6c143e9cf65c6451e573bbfc51d8 Partially-Implements: blueprint centos-rhel-8
-rw-r--r--tests/templates/kolla-build.conf.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/templates/kolla-build.conf.j2 b/tests/templates/kolla-build.conf.j2
index 8a7bc4f20..47650bb58 100644
--- a/tests/templates/kolla-build.conf.j2
+++ b/tests/templates/kolla-build.conf.j2
@@ -3,7 +3,7 @@ debug = true
{% if publisher %}
namespace = kolla
{# TODO(mgoddard): Remove tag_suffix when CentOS 7 is no longer supported. #}
-{% set tag_suffix = '-centos8' if ansible_distribution == 'centos' and ansible_distribution_major_version == '8' else '' %}
+{% set tag_suffix = '-centos8' if ansible_distribution | lower == 'centos' and ansible_distribution_major_version == '8' else '' %}
tag = {{ (zuul.tag if zuul.pipeline == "release" else zuul.branch | basename) ~ tag_suffix }}
{% endif %}
push = false