build the docker image before stopping the old to avoid downtime
This commit is contained in:
parent
c5cd891a25
commit
f762b13b80
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue