fix: add --force-recreate to docker compose deploy step
CI/CD / CI · dotnet build (push) Successful in 23s
CI/CD / Deploy · drsousan (push) Failing after 2s

Without this flag, the deploy fails with "container name already in use"
when a container with the same name exists from a previous run.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-06-02 00:04:14 +03:30
parent 7f5444085b
commit dd5afde5df
+1 -1
View File
@@ -91,7 +91,7 @@ jobs:
DOCKER_BUILDKIT: 1 DOCKER_BUILDKIT: 1
- name: Deploy - name: Deploy
run: docker compose up -d --no-deps api run: docker compose up -d --no-deps --force-recreate api
- name: Wait for healthy - name: Wait for healthy
run: | run: |