From c455fe51df9872c3af745eeb504e44c5dc9c66bc Mon Sep 17 00:00:00 2001 From: Shahriyar Jalayeri Date: Mon, 11 Nov 2024 10:36:41 +0200 Subject: [PATCH] github actions setup-environment: support rc tag Signed-off-by: Shahriyar Jalayeri --- .github/actions/setup-environment/action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-environment/action.yml b/.github/actions/setup-environment/action.yml index 5fe029a51..ff5c809a3 100644 --- a/.github/actions/setup-environment/action.yml +++ b/.github/actions/setup-environment/action.yml @@ -86,8 +86,10 @@ runs: echo "Setting up eve image ${image}" eve_pr_registry=$(echo "$image" | cut -d ':' -f 1) eve_pr=$(echo "$image" | cut -d ':' -f 2 | cut -d "-" -f1) + # this will be empty if there is no rc in the tag + eve_rc=$(echo "$image" | cut -d ':' -f 2 | grep -Eo "\-rc[0-9]+" || printf "") ./eden config set default --key=eve.registry --value="$eve_pr_registry" - ./eden config set default --key=eve.tag --value="$eve_pr" + ./eden config set default --key=eve.tag --value="$eve_pr$eve_rc" else echo "Skipping setting up eve image ${image}" fi