Add remote url change to ssh url

This commit is contained in:
Daniel_I_Am 2020-08-20 16:00:07 +02:00
parent f9e7505c77
commit 43eba45744
No known key found for this signature in database
GPG Key ID: FC83834B306E8F14

View File

@ -48,6 +48,7 @@ version:
- 'chmod 600 ~/.ssh/id_rsa'
- 'ssh-keyscan -p 2302 git.chaoticlogic.us >> ~/.ssh/known_hosts'
- 'git tag $(semver -i $( (git log -1 --pretty=%B | grep -oP "(?<=#)(patch|minor|major)" || echo "patch") | head -1) $(git tag --list | sort -rV | head -1))'
- 'git remote set-url origin $(git remote get-url origin | sed -r "s/http:\/\/([^:]+):[0-9]+\/(.*\.git)\//ssh:\/\/git@\1:2302\/\2/")'
- 'git push --tags'
- 'git describe --tags | tr -d "\n" > version'
artifacts: