From 66b41a6783531c155c4786c90a9c5b28671c7608 Mon Sep 17 00:00:00 2001 From: SangYeong Park <107484383+Imsyp@users.noreply.github.com> Date: Fri, 20 Sep 2024 20:37:54 +0900 Subject: [PATCH] Update server_cicd.yml --- .github/workflows/server_cicd.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/server_cicd.yml b/.github/workflows/server_cicd.yml index d3b94bc..362eb8d 100644 --- a/.github/workflows/server_cicd.yml +++ b/.github/workflows/server_cicd.yml @@ -40,10 +40,11 @@ jobs: key: ${{ secrets.GCP_SERVER_SSH_PRIVATE_KEY }} port: 22 script: | - cd /home/patturning1/Dark-Pattern-Detection-SWDeveloperContest/server + cd /home/patturning1/deployment sudo docker stop swdc-container || true sudo docker rm swdc-container || true - sudo docker build -t swdc-app . + rm -rf /home/patturning1/deployment/swdc-0.0.1-SNAPSHOT.jar + scp -r ./server/build/libs/swdc-0.0.1-SNAPSHOT.jar patturning1@${{ secrets.GCP_SERVER_VM_HOST }}:/home/patturning1/deployment/ sudo docker run -d -p 8080:8080 --name swdc-container swdc-app