From e26ac82e5626097812a3b4c04703a5c492bef7c3 Mon Sep 17 00:00:00 2001 From: jungeunyooon Date: Wed, 24 Jan 2024 21:47:05 +0900 Subject: [PATCH] =?UTF-8?q?set:=20cd.yml=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cd.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 7819c11..cda4b15 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -42,12 +42,12 @@ jobs: # Job # docker-compose에서 사용하는 이미지들을 build, 공식 이미지들은 x - name: Build docker images run: | - docker-compose -f docker-compose.yml -f docker-compose.monitoring.yml build + docker-compose -f docker-compose.yml build docker images # docker hub repository에 이미지들을 push - name: Push docker images - run: docker-compose -f docker-compose.yml -f docker-compose.monitoring.yml push + run: docker-compose -f docker-compose.yml push # ssh를 통해 EC2에 접속, 접속한 후에 실행할 스크립트 작성 - name: Connect to EC2 using SSH @@ -61,6 +61,6 @@ jobs: # Job script: | cd github-actions-session git pull - sudo docker-compose -f docker-compose.yml -f docker-compose.monitoring.yml down - sudo docker-compose -f docker-compose.yml -f docker-compose.monitoring.yml pull - sudo docker-compose -f docker-compose.yml -f docker-compose.monitoring.yml up -d --build + sudo docker-compose -f docker-compose.yml down + sudo docker-compose -f docker-compose.yml pull + sudo docker-compose -f docker-compose.yml up -d --build