We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94cc205 commit 79c07dfCopy full SHA for 79c07df
1 file changed
.github/workflows/deploy-vps.yml
@@ -91,14 +91,21 @@ jobs:
91
ls -t /tmp/backup-*.tar.gz 2>/dev/null | tail -n +6 | xargs -r rm
92
fi
93
94
+ # Stop and remove old containers
95
+ echo "🛑 Stopping old containers..."
96
+ docker compose down --remove-orphans || true
97
+
98
+ # Clean up old files (keep data volumes)
99
+ echo "🧹 Cleaning up old files..."
100
+ rm -f docker-compose.yml Dockerfile Dockerfile.* 2>/dev/null || true
101
102
# Extract new deployment
103
echo "📂 Extracting new files..."
104
tar -xzf /tmp/deploy-vps.tar.gz
105
rm /tmp/deploy-vps.tar.gz
106
107
# Rebuild and restart containers
108
echo "🐳 Rebuilding Docker containers..."
- docker compose down --remove-orphans || true
109
docker compose up --build -d
110
111
# Wait for services to be healthy
0 commit comments