Skip to content

Commit

Permalink
Fix release regex (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPetkov committed Jul 28, 2020
1 parent fd85f02 commit a1c1dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/build-include.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if [[ -z ${VERSION} ]]; then
exit 1
fi

version_regex="^v[0-9]+\.[0-9]+\.[0-9]+|latest$"
version_regex="^latest|(((templates|policies)-)?v[0-9]+\.[0-9]+\.[0-9]+)$"
if ! [[ ${VERSION} =~ ${version_regex} ]]; then
echo "Version \"${VERSION}\" does not match regex ${version_regex}"
exit 1
Expand Down

0 comments on commit a1c1dba

Please sign in to comment.