diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-02-12 01:13:18 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-02-12 01:13:18 +0100 |
| commit | ca2e5f9aa1b46373b3f860252a4abaeefadcd281 (patch) | |
| tree | 9433d2d35830ba854fc0aeccc774f385c8969822 | |
| parent | 92a21eb8c12479349f2043fc9f7f96400df8fd4a (diff) | |
| download | bookmark-thing-ca2e5f9aa1b46373b3f860252a4abaeefadcd281.tar.xz bookmark-thing-ca2e5f9aa1b46373b3f860252a4abaeefadcd281.zip | |
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.
| -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 |
