add semver
This commit is contained in:
parent
3c4acd82ff
commit
25c75a1218
@ -32,7 +32,14 @@ build-push:
|
|||||||
#script:
|
#script:
|
||||||
# - TAG=$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA sh ./scripts/build-push.sh
|
# - TAG=$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA sh ./scripts/build-push.sh
|
||||||
script:
|
script:
|
||||||
- TAG=latest sh ./scripts/build-push.sh
|
- curl -o bin/sbot -L https://github.com/restechnica/semverbot/releases/download/v$SEMVERBOT_VERSION/sbot-linux-amd64
|
||||||
|
- chmod +x bin/sbot
|
||||||
|
- echo "RELEASE_VERSION=$(sbot predict version)"
|
||||||
|
- echo "current version: $(sbot get version)"
|
||||||
|
- echo "next version: $RELEASE_VERSION"
|
||||||
|
- sbot release version
|
||||||
|
- sbot push version
|
||||||
|
- TAG=RELEASE_VERSION sh ./scripts/build-push.sh
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_REF_PROTECTED == "true"
|
- if: $CI_COMMIT_REF_PROTECTED == "true"
|
||||||
when: always
|
when: always
|
||||||
|
17
.semverbot.toml
Normal file
17
.semverbot.toml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
[git]
|
||||||
|
|
||||||
|
[git.config]
|
||||||
|
email = "semverbot@github.com"
|
||||||
|
name = "semverbot"
|
||||||
|
|
||||||
|
[git.tags]
|
||||||
|
prefix = "v"
|
||||||
|
|
||||||
|
[semver]
|
||||||
|
mode = "auto"
|
||||||
|
|
||||||
|
[semver.detection]
|
||||||
|
patch = ["fix:", "[fix]"]
|
||||||
|
minor = ["feat:", "[feat]"]
|
||||||
|
major = ["release:", "[release]", "BREAKING CHANGE:"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user