Skip to content

Commit

Permalink
use network
Browse files Browse the repository at this point in the history
  • Loading branch information
jinia91 committed Aug 19, 2024
1 parent c8afca1 commit 838ee6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 838ee6e

Please sign in to comment.