fix: add git pull to deploy.sh so docker-compose.yaml stays in sync
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

Without this, the server would run a stale docker-compose.yaml after
any infra changes (e.g. adding MongoDB auth) even though the image
was updated. deploy.sh now pulls repo changes before pulling the image.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Head of Product & Engineering 2026-04-06 16:15:27 +02:00
parent 4d8e1eb352
commit 221cd94999

View File

@ -8,6 +8,9 @@ set -euo pipefail
APP_DIR="$(cd "$(dirname "$0")/.." && pwd)" APP_DIR="$(cd "$(dirname "$0")/.." && pwd)"
cd "$APP_DIR" cd "$APP_DIR"
echo "==> Updating repo"
git pull origin main
echo "==> Pulling latest image from registry" echo "==> Pulling latest image from registry"
docker compose pull bridge docker compose pull bridge