updated sbot config
This commit is contained in:
parent
035531ba49
commit
1f50abe13c
@ -36,10 +36,15 @@ version:
|
|||||||
- ssh-add <(echo "$SSH_PRIVATE_KEY")
|
- ssh-add <(echo "$SSH_PRIVATE_KEY")
|
||||||
- curl -o sbot -L https://github.com/restechnica/semverbot/releases/download/v$SEMVERBOT_VERSION/sbot-linux-amd64
|
- curl -o sbot -L https://github.com/restechnica/semverbot/releases/download/v$SEMVERBOT_VERSION/sbot-linux-amd64
|
||||||
- chmod +x sbot
|
- chmod +x sbot
|
||||||
- ./sbot predict version -m git-commit
|
|
||||||
- export TAG=$(./sbot predict version)
|
|
||||||
- echo $TAG > version
|
|
||||||
- git remote set-url origin git@gitlab.com:grassrootseconomics/cic-internal-integration.git
|
- git remote set-url origin git@gitlab.com:grassrootseconomics/cic-internal-integration.git
|
||||||
|
- export TAG=$(./sbot predict version -m auto)
|
||||||
|
- |
|
||||||
|
if [[ -z $TAG ]]
|
||||||
|
then
|
||||||
|
echo "tag could not be set $@"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
- echo $TAG > version
|
||||||
- git tag -a v$TAG -m "ci tagged"
|
- git tag -a v$TAG -m "ci tagged"
|
||||||
- git push origin v$TAG
|
- git push origin v$TAG
|
||||||
artifacts:
|
artifacts:
|
||||||
|
Loading…
Reference in New Issue
Block a user