build the docker image before stopping the old to avoid downtime

This commit is contained in:
jasquat 2022-07-15 09:55:44 -04:00
parent c5cd891a25
commit f762b13b80
2 changed files with 4 additions and 2 deletions

View File

@ -17,4 +17,7 @@ if [[ "${RUN_WITH_DAEMON:-}" != "false" ]]; then
additional_args="${additional_args} -d"
fi
docker compose up --build $additional_args
docker compose build
docker compose stop
docker compose up $additional_args

View File

@ -8,5 +8,4 @@ trap 'error_handler ${LINENO} $?' ERR
set -o errtrace -o errexit -o nounset -o pipefail
git pull
docker compose stop
./bin/build_and_run_with_docker_compose