2024-06-11 10:37:39 +00:00
|
|
|
set -e
|
|
|
|
export IMAGE=$1
|
|
|
|
docker system prune -af
|
|
|
|
docker compose pull
|
|
|
|
read -p "Press Enter to update Coolify to $IMAGE..." </dev/tty
|
2024-06-12 09:30:25 +00:00
|
|
|
docker exec coolify sh -c "php artisan tinker --execute='isAnyDeploymentInprogress()'"
|
2024-06-11 10:37:39 +00:00
|
|
|
docker compose up --remove-orphans --force-recreate -d --wait
|
|
|
|
echo $IMAGE > last_version
|
|
|
|
docker compose logs -f
|