add:script

This commit is contained in:
kokopi
2026-03-08 02:41:23 +09:00
parent 83966498bb
commit 4f7bc655c9

14
deploy.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
set -e
echo "Pulling latest code..."
git pull
echo "Building and restarting containers..."
docker compose up -d --build
echo "Cleaning up old images..."
docker image prune -f
echo "Done. Status:"
docker compose ps