chore: Update deploy script to pull Docker image instead of building locally for VPS deployment.
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Moh Dzulfikri Maulana
2026-03-10 08:42:16 +07:00
parent 5ed9efe458
commit 1d668325e6

View File

@@ -21,7 +21,9 @@ fi
echo "📦 Membangun dan menjalankan container aplikasi..." echo "📦 Membangun dan menjalankan container aplikasi..."
# Langsung jalankan perintah docker-compose up # Langsung jalankan perintah docker-compose up
# --build memastikan image terbaru selalu dibuat # --build memastikan image terbaru selalu dibuat
$COMPOSE_CMD up -d --build app # Versi untuk di VPS (Hanya tarik image, jangan build ulang)
$COMPOSE_CMD pull app
$COMPOSE_CMD up -d --remove-orphans app
# Membersihkan image sampah # Membersihkan image sampah
echo "🧹 Membersihkan image lama..." echo "🧹 Membersihkan image lama..."