Skip to content
Snippets Groups Projects
Commit 758e0b0d authored by jurgenhaas's avatar jurgenhaas
Browse files

Add support for minor and major release tags

parent c43bf707
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,10 @@ Tag Release:
- git fetch --tags
- git pull
- git pull --tags
- NEWTAG=$(gen-semver)
- ARGS=""
- if [[ "$CI_COMMIT_MESSAGE" == *"[MINOR_VERSION]"* ]]; then ARGS="--minor"; fi
- if [[ "$CI_COMMIT_MESSAGE" == *"[MAJOR_VERSION]"* ]]; then ARGS="--major"; fi
- NEWTAG=$(gen-semver ${ARGS})
- echo "New version ${NEWTAG}"
- curl --fail -s -H "$PRIVHEADER" --data "tag_name=$NEWTAG" --data "ref=main" $TAGURL
rules:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment