Skip to content

Commit

Permalink
github actions setup-environment: support rc tag
Browse files Browse the repository at this point in the history
Signed-off-by: Shahriyar Jalayeri <[email protected]>
  • Loading branch information
shjala committed Nov 11, 2024
1 parent 97aafff commit d90a5cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/actions/setup-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 | egrep -o "\-rc[0-9]+")
./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
Expand Down

0 comments on commit d90a5cc

Please sign in to comment.