Skip to content
Snippets Groups Projects
Commit e58d903d authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: allow for alpine /bin/sh regex grouping syntax

parent 1abcb860
Branches
No related tags found
1 merge request!754fix: allow for alpha and beta releases in addition to stable
This commit is part of merge request !754. Comments created here will be created in the context of that merge request.
...@@ -107,10 +107,10 @@ version: ...@@ -107,10 +107,10 @@ version:
elif [[ "$CI_COMMIT_TAG" =~ ^v[0-9.]+\.[0-9]+\.[0-9]+ ]]; then elif [[ "$CI_COMMIT_TAG" =~ ^v[0-9.]+\.[0-9]+\.[0-9]+ ]]; then
VERSION="${CI_COMMIT_TAG:1}" VERSION="${CI_COMMIT_TAG:1}"
EXPORT_TAG="${VERSION}" EXPORT_TAG="${VERSION}"
elif [[ "$CI_COMMIT_BRANCH" =~ ^v[0-9.]+\.[0-9]+-(alpha|beta|stable) ]]; then elif [[ "$CI_COMMIT_BRANCH" =~ ^v[0-9.]+\.[0-9]+-\(alpha\|beta\|stable\) ]]; then
VERSION="${CI_COMMIT_BRANCH:1}" VERSION="${CI_COMMIT_BRANCH:1}"
EXPORT_TAG="${VERSION}" EXPORT_TAG="${VERSION}"
elif [[ "$CI_COMMIT_BRANCH" =~ ^v[0-9.]+\.[0-9]+-[a-z]+-(alpha|beta|stable) ]]; then elif [[ "$CI_COMMIT_BRANCH" =~ ^v[0-9.]+\.[0-9]+-[a-z]+-\(alpha\|beta\|stable\) ]]; then
VERSION="${CI_COMMIT_BRANCH:1}" VERSION="${CI_COMMIT_BRANCH:1}"
EXPORT_TAG="${VERSION}" EXPORT_TAG="${VERSION}"
elif [[ "$CI_COMMIT_BRANCH" =~ ^master$ ]]; then elif [[ "$CI_COMMIT_BRANCH" =~ ^master$ ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment