better wait_seconds

This commit is contained in:
pedro 2024-03-15 09:03:02 +01:00
parent 4ad2711b7e
commit de3f6f077d
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ main() {
export action="${action:-deploy}"
export deployment="${deployment:-prod}"
export wait_seconds="${wait_seconds:-20}"
./build__pilot-xo9b.sh
./build__pilot-setem.sh
./build__pilot-lafede.sh

View File

@ -72,7 +72,7 @@ common_end() {
if [ "${action:-}" = "deploy" ]; then
docker compose -p ${target} -f ${dc_file} up ${detach:-}
wait_seconds="${wait_seconds:-20}"
wait_seconds="${wait_seconds:0}"
echo "Give ${wait_seconds} seconds to this new deployment to be setted up"
sleep "${wait_seconds}"
fi