2018-05-23 21:09:14 +02:00
|
|
|
# Semantic Versioning
|
2017-02-23 20:14:34 +01:00
|
|
|
|
2017-02-23 23:11:55 +01:00
|
|
|
|
2018-05-23 21:09:14 +02:00
|
|
|
# Usage
|
2017-02-23 23:11:55 +01:00
|
|
|
|
2017-10-27 18:41:20 +02:00
|
|
|
# FULL_PATH_TO_LOCAL_REPO gives container access to repo to be versioned
|
|
|
|
# FULL_PATH_TO_SSH_FOLDER gives container access to ssh keys to be able to push repo
|
2017-02-23 23:11:55 +01:00
|
|
|
docker build -t semver .
|
2017-10-27 18:41:20 +02:00
|
|
|
docker run -v FULL_PATH_TO_LOCAL_REPO:/application_repo -v FULL_PATH_TO_SSH_FOLDER:/root/.ssh semver
|
2017-02-23 23:11:55 +01:00
|
|
|
|
|
|
|
# after this finishes must go to FULL_PATH_TO_LOCAL_REPO and push yourself
|
|
|
|
git push origin develop
|
|
|
|
git push origin --tags
|
2018-06-05 17:06:08 +02:00
|
|
|
|
|
|
|
# Exit Codes
|
|
|
|
Exit codes mean things
|
|
|
|
|
|
|
|
## 1
|
|
|
|
No merge found
|
|
|
|
## 2
|
|
|
|
Not a main branch
|
|
|
|
## 3
|
|
|
|
No git flow branch name found
|
|
|
|
## 128
|
|
|
|
Totally broken dont know why
|