Skip to content

Commit bf00372

Browse files
authored
ci: update regex for new cilium images (#3115)
* ci: update regex for new images * ci: leverage OR operator
1 parent 146e647 commit bf00372

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.pipelines/templates/cilium-cli.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
steps:
22
- script: |
33
echo "install cilium CLI"
4-
if [[ ${CILIUM_VERSION_TAG_V1_5} =~ ^1.1[1-3].[0-9]{1,2} ]]; then
4+
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
55
echo "Cilium Agent Version ${BASH_REMATCH[0]}"
66
CILIUM_CLI_VERSION=$(curl -s https://raw.githubusercontent.com/cilium/cilium-cli/main/stable-v0.14.txt)
7-
elif [[ ${CILIUM_VERSION_TAG_V1_5} =~ ^1.14.[0-9]{1,2} ]]; then
7+
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
88
echo "Cilium Agent Version ${BASH_REMATCH[0]}"
99
CILIUM_CLI_VERSION=v0.15.22
1010
else

0 commit comments

Comments
 (0)