From c5e1c96e3627c470de3a4279062b20a20456dec8 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Mon, 9 Oct 2023 18:24:41 -0300 Subject: [PATCH] Force remove stopped containers --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ee012cd..d245b18 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -149,7 +149,7 @@ deploy-prod: - docker login -u $DOCKER_HUB_USER --password $DOCKER_HUB_PASS - docker compose -f docker-compose.yml --profile all --env-file $ENV_PROD_FILE stop - - docker compose -f docker-compose.yml --profile all --env-file $ENV_PROD_FILE rm + - docker compose -f docker-compose.yml --profile all --env-file $ENV_PROD_FILE rm -f - docker compose -f docker-compose.yml --profile all --env-file $ENV_PROD_FILE pull - docker compose -f docker-compose.yml --profile all --env-file $ENV_PROD_FILE up -d needs: