From 21b3de4c7125635a18b373a09aacbca115d93832 Mon Sep 17 00:00:00 2001 From: Marius Date: Mon, 18 Oct 2021 15:04:48 +0200 Subject: [PATCH] ci: Replace version test with working regex --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9a6c395..301d317 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -67,7 +67,7 @@ jobs: docker tag tusproject/tusd:$GITHUB_SHA tusproject/tusd:$TAG_NAME docker push tusproject/tusd:$TAG_NAME # 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 docker tag tusproject/tusd:$GITHUB_SHA tusproject/tusd:latest docker push tusproject/tusd:latest