diff options
Diffstat (limited to 'build_and_push.sh')
| -rwxr-xr-x | build_and_push.sh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/build_and_push.sh b/build_and_push.sh index c55cf35..eb6f378 100755 --- a/build_and_push.sh +++ b/build_and_push.sh @@ -9,7 +9,7 @@ do_push() { pushd src/server docker build -t $IMAGE_NAME . - + popd docker tag $IMAGE_NAME $HUB_NAME:$COMMIT_HASH @@ -25,11 +25,13 @@ do_push() { if [ -z "$(git status --untracked-files=no --porcelain)" ]; then do_push else - echo "unclean git tree! CTRL+C to cancel, anything to commit and push to default branch" + echo "unclean git tree! CTRL+C to cancel, anything to continue" read -n 1 - read -p "Enter commit message: " COMMIT_MESSAGE - git add . - git commit -m "$COMMIT_MESSAGE" - git push + # echo "unclean git tree! CTRL+C to cancel, anything to commit and push to default branch" + # read -n 1 + # read -p "Enter commit message: " COMMIT_MESSAGE + # git add . + # git commit -m "$COMMIT_MESSAGE" + # git push do_push fi |
