From 838ee6e59344e452c276dbe8619486693e1675fa Mon Sep 17 00:00:00 2001 From: jinia91 Date: Mon, 19 Aug 2024 15:51:59 +0900 Subject: [PATCH] use network --- .github/workflows/cd.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index a4dfe3e9..46ce93da 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -70,9 +70,8 @@ jobs: fi # 새로운 이미지로 컨테이너 실행 - sudo docker run -d --name blog-backend-${NEW_PORT} -p ${NEW_PORT}:7777 \ + sudo docker run -d --name blog-backend-${NEW_PORT} -p ${NEW_PORT}:7777 --network my-network \ -v ~/blog/application.yml:/app/config/application.yml \ - -v ~/blog/h2:/h2 \ jinia91/blog-backend:${{ github.sha }} java -jar blog-backend.jar --spring.config.location=file:/app/config/application.yml # 새로운 컨테이너의 Health Check