We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e45785 commit 5ed8137Copy full SHA for 5ed8137
.circleci/config.yml
@@ -227,8 +227,10 @@ jobs:
227
CIRCLE_BRANCH=${BRANCHES##*/}
228
echo "CIRCLE_BRANCH is empty, trying to set it from git, result: $CIRCLE_BRANCH"
229
fi
230
- if [[ $CIRCLE_BRANCH != "main" && ! $CIRCLE_TAG =~ (a|b|rc) ]]; then
231
- echo "Final release tags are only allowed on main branch."
+ if [[ $CIRCLE_BRANCH != "main" && \
+ ! $CIRCLE_BRANCH =~ ^release/v[0-9]+\.[0-9]+(\.[0-9]+)?$ && \
232
+ ! $CIRCLE_TAG =~ (a|b|rc) ]]; then
233
+ echo "Final release tags are only allowed from main or release/vX.Y(.Z) branches."
234
exit 1
235
else
236
DOCKER_TAG=${DOCKER_BASE}/keyper:${CIRCLE_TAG}
0 commit comments