From 14caae97783a44c06769a000bfcd55498fa363ea Mon Sep 17 00:00:00 2001 From: yooonwodyd Date: Fri, 22 Dec 2023 01:05:34 +0900 Subject: [PATCH] =?UTF-8?q?docker-image.yml=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-image.yml | 16 +++++++++++++++- src/main/resources/static/index.html | 1 + 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 5433cbc..ecbef6b 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -32,4 +32,18 @@ jobs: run: | docker login -u yooonwodyd00 -p dbswodyd91 docker build -f Dockerfile -t yooonwodyd00/happynewhere_be-app . - docker push yooonwodyd00/happynewhere_be-app \ No newline at end of file + docker push yooonwodyd00/happynewhere_be-app + ## deploy to develop + - name: Deploy to dev + if: contains(github.ref, 'develop') + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.REMOTE_IP }} + username: ${{ secrets.REMOTE_SSH_ID }} + key: ${{ secrets.REMOTE_SSH_KEY }} + port: ${{ secrets.REMOTE_SSH_PORT }} + script: | + sudo docker ps + sudo docker pull yooonwodyd00/happynewhere_be-app + sudo docker compose down + sudo docker compose up -d diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html index 8c35349..35e359e 100644 --- a/src/main/resources/static/index.html +++ b/src/main/resources/static/index.html @@ -7,6 +7,7 @@ Kakao 로그인 이제 안됨~~~~~ + ci/cd 적용 완료 \ No newline at end of file