Dynamically grab remote name #patch
This commit is contained in:
parent
43eba45744
commit
bae00357e2
@ -48,7 +48,7 @@ version:
|
|||||||
- 'chmod 600 ~/.ssh/id_rsa'
|
- 'chmod 600 ~/.ssh/id_rsa'
|
||||||
- 'ssh-keyscan -p 2302 git.chaoticlogic.us >> ~/.ssh/known_hosts'
|
- '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 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 remote set-url $(git remote | head -1) $(git remote get-url $(git remote | head -1) | sed -r "s/http:\/\/([^:]+):[0-9]+\/(.*\.git)\//ssh:\/\/git@\1:2302\/\2/")'
|
||||||
- 'git push --tags'
|
- 'git push --tags'
|
||||||
- 'git describe --tags | tr -d "\n" > version'
|
- 'git describe --tags | tr -d "\n" > version'
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user