From ca2e5f9aa1b46373b3f860252a4abaeefadcd281 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sat, 12 Feb 2022 01:13:18 +0100 Subject: build: Remove ability to commit from build script. This should be a temporary change but the result of not having to commit before every release is a use case. --- build_and_push.sh | 14 ++++++++------ 1 file 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 -- cgit v1.3