figured out way to attach local .ssh dir so that docker container will have permissions to push to repo we are versioning

This commit is contained in:
Michael Gimbel
2017-10-27 16:41:20 +00:00
parent 6d09f07df9
commit 611cfeafdf
2 changed files with 8 additions and 7 deletions

View File

@@ -5,8 +5,10 @@ Semantic Versioning
Usage
-----
# 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
docker build -t semver .
docker run -v FULL_PATH_TO_LOCAL_REPO:/application_repo semver
docker run -v FULL_PATH_TO_LOCAL_REPO:/application_repo -v FULL_PATH_TO_SSH_FOLDER:/root/.ssh semver
# after this finishes must go to FULL_PATH_TO_LOCAL_REPO and push yourself
git push origin develop