diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 6af4ace9..0ca1d2fc 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -117,11 +117,13 @@ jobs: fi echo '=== Pulling latest image ===' + # Explicitly pull the image to ensure we get the latest version + docker pull registry.infra.mintel.me/mintel/klz-cables.com:latest docker compose pull echo '=== Restarting containers ===' - docker compose down - docker compose up -d + # Use --force-recreate to ensure containers are updated even if compose thinks they are up to date + docker compose up -d --force-recreate --remove-orphans echo '=== Waiting for containers (30s) ===' sleep 30