ci: Replace version test with working regex
This commit is contained in:
parent
cd717e580c
commit
21b3de4c71
|
@ -67,7 +67,7 @@ jobs:
|
||||||
docker tag tusproject/tusd:$GITHUB_SHA tusproject/tusd:$TAG_NAME
|
docker tag tusproject/tusd:$GITHUB_SHA tusproject/tusd:$TAG_NAME
|
||||||
docker push tusproject/tusd:$TAG_NAME
|
docker push tusproject/tusd:$TAG_NAME
|
||||||
# Create latest tag if we have no pre-release
|
# Create latest tag if we have no pre-release
|
||||||
if [[ $TAG_NAME =~ ^v\d+\.\d+\.\d+$ ]];
|
if [[ $TAG_NAME =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]];
|
||||||
then
|
then
|
||||||
docker tag tusproject/tusd:$GITHUB_SHA tusproject/tusd:latest
|
docker tag tusproject/tusd:$GITHUB_SHA tusproject/tusd:latest
|
||||||
docker push tusproject/tusd:latest
|
docker push tusproject/tusd:latest
|
||||||
|
|
Loading…
Reference in New Issue