From ff82ee5ea895ca690321525823271f0b5cae756e Mon Sep 17 00:00:00 2001 From: Junseok Kim <30834810+junseokkim@users.noreply.github.com> Date: Sat, 6 Jan 2024 18:18:43 +0900 Subject: [PATCH] [fix] ci/cd --- .github/workflows/umc-service-dev.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/umc-service-dev.yml b/.github/workflows/umc-service-dev.yml index efffc796..82da0dd5 100644 --- a/.github/workflows/umc-service-dev.yml +++ b/.github/workflows/umc-service-dev.yml @@ -28,8 +28,6 @@ jobs: # Secrets에 저장한 값을 application.yml 파일에 쓰기 echo "${{ secrets.DEV_YML }}" >> ./application.yml - - cd ../../../ shell: bash # 2. Spring Boot 애플리케이션 빌드 @@ -62,6 +60,7 @@ jobs: key: ${{ secrets.KEY }} port: 22 script: | + cd / sudo docker-compose -f docker-compose.dev.yml down sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}-dev sudo docker-compose -f docker-compose.dev.yml up -d