From 6277fdd3f8f4f7bfa929ddd59a812097336d9591 Mon Sep 17 00:00:00 2001 From: catomat0 Date: Wed, 18 Mar 2026 15:11:43 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EB=8F=84=EC=BB=A4=20=EC=97=85=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=8A=B8=EB=A1=9C=20=EC=9D=B8=ED=95=9C=20cd=20?= =?UTF-8?q?=EB=B0=B0=ED=8F=AC=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8?= =?UTF-8?q?=EB=AC=B8=20=EC=9E=AC=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cd.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index bce7a42c..7d32be6d 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -73,18 +73,17 @@ jobs: set -e cd /home/ubuntu/deare - ENV_FILE=/home/ubuntu/deare/.env.prod COMPOSE_FILE=/home/ubuntu/deare/docker-compose-dev.yml - docker compose --env-file $ENV_FILE -f $COMPOSE_FILE pull app + docker compose -f $COMPOSE_FILE pull app - if docker compose --env-file $ENV_FILE -f $COMPOSE_FILE up -d; then + if docker compose -f $COMPOSE_FILE up -d; then echo "compose up succeeded without down" else echo "compose up failed. fallback to down -> up" - docker compose --env-file $ENV_FILE -f $COMPOSE_FILE down - docker compose --env-file $ENV_FILE -f $COMPOSE_FILE up -d + docker compose -f $COMPOSE_FILE down + docker compose -f $COMPOSE_FILE up -d fi - docker compose --env-file $ENV_FILE -f $COMPOSE_FILE ps + docker compose -f $COMPOSE_FILE ps docker image prune -f