Match entire tag during build

This commit is contained in:
PJ Eby 2021-08-04 17:22:58 -04:00
parent 2e6f102dce
commit 1f927c6300

View file

@ -15,7 +15,7 @@ jobs:
ref=${ref##*/}
if [[ $ref == master ]]; then
tags=$repo:unstable
elif [[ $ref =~ ^([0-9.]+)-((([0-9]+[.])[0-9]+[.])([.][0-9+])*) ]]; then
elif [[ $ref =~ ^([0-9.]+)-((([0-9]+[.])[0-9]+[.])([.][0-9+])*)$ ]]; then
upstream=${BASH_REMATCH[1]}
minor=${BASH_REMATCH[3]}x
major=${BASH_REMATCH[4]}x