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
Branches
No related tags found
No related merge requests found
...@@ -22,7 +22,10 @@ Tag Release: ...@@ -22,7 +22,10 @@ Tag Release:
- git fetch --tags - git fetch --tags
- git pull - git pull
- git pull --tags - 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}" - echo "New version ${NEWTAG}"
- curl --fail -s -H "$PRIVHEADER" --data "tag_name=$NEWTAG" --data "ref=main" $TAGURL - curl --fail -s -H "$PRIVHEADER" --data "tag_name=$NEWTAG" --data "ref=main" $TAGURL
rules: rules:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment