Skip to content

Commit 939b9cf

Browse files
committed
๐Ÿ› fix: docker compose ๋ช…๋ น์–ด V2๋กœ ๋ณ€๊ฒฝ
1 parent 940444c commit 939b9cf

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

โ€Ž.github/workflows/deploy_feed-crawler.ymlโ€Ž

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,8 @@ jobs:
8080
8181
- name: Docker ์ด๋ฏธ์ง€ Pull & ์„œ๋น„์Šค ์žฌ์‹œ์ž‘
8282
run: |
83-
if docker compose version >/dev/null 2>&1; then DC="docker compose"; else DC="docker-compose"; fi
8483
docker pull "${IMAGE_NAME}:${IMAGE_TAG}" || true
8584
docker pull "${IMAGE_NAME}:latest" || true
86-
$DC -f "$COMPOSE_FILE" pull "$SERVICE"
87-
$DC -f "$COMPOSE_FILE" up -d --no-deps --force-recreate "$SERVICE"
85+
docker compose -f "$COMPOSE_FILE" pull "$SERVICE"
86+
docker compose -f "$COMPOSE_FILE" up -d --no-deps --force-recreate "$SERVICE"
8887
docker image prune -f || true

โ€Ž.github/workflows/deploy_infra.ymlโ€Ž

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020

2121
- name: ์ธํ”„๋ผ ์„œ๋น„์Šค ์žฌ์‹œ์ž‘
2222
run: |
23-
if docker compose version >/dev/null 2>&1; then DC="docker compose"; else DC="docker-compose"; fi
24-
$DC -f "$COMPOSE_FILE" down
25-
$DC -f "$COMPOSE_FILE" up -d
23+
docker compose -f "$COMPOSE_FILE" down
24+
docker compose -f "$COMPOSE_FILE" up -d
2625
docker image prune -f || true

โ€Ž.github/workflows/deploy_server.ymlโ€Ž

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,8 @@ jobs:
8989
9090
- name: Docker ์ด๋ฏธ์ง€ Pull & ์„œ๋น„์Šค ์žฌ์‹œ์ž‘
9191
run: |
92-
if docker compose version >/dev/null 2>&1; then DC="docker compose"; else DC="docker-compose"; fi
9392
docker pull "${IMAGE_NAME}:${IMAGE_TAG}" || true
9493
docker pull "${IMAGE_NAME}:latest" || true
95-
$DC -f "$COMPOSE_FILE" pull "$SERVICE"
96-
$DC -f "$COMPOSE_FILE" up -d --no-deps --force-recreate "$SERVICE"
94+
docker compose -f "$COMPOSE_FILE" pull "$SERVICE"
95+
docker compose -f "$COMPOSE_FILE" up -d --no-deps --force-recreate "$SERVICE"
9796
docker image prune -f || true

0 commit comments

Comments
ย (0)