From 552f83f64ff77794be8e8e0d8b1488184d5129ac Mon Sep 17 00:00:00 2001 From: SangYeong Park <107484383+Imsyp@users.noreply.github.com> Date: Fri, 20 Sep 2024 21:00:22 +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 1e3b7b0..5f0f50c 100644 --- a/.github/workflows/server_cicd.yml +++ b/.github/workflows/server_cicd.yml @@ -38,12 +38,13 @@ jobs: host: ${{ secrets.GCP_SERVER_VM_HOST }} username: ${{ secrets.GCP_SERVER_VM_USER }} key: ${{ secrets.GCP_SERVER_SSH_PRIVATE_KEY }} + source: server/build/libs/swdc-0.0.1-SNAPSHOT.jar + target: /home/patturning1/deployment/ port: 22 script: | sudo docker stop swdc-container || true sudo docker rm swdc-container || true - 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/ + cd /home/patturning1/deployment sudo docker build -t swdc-app . sudo docker run -d -p 8080:8080 --name swdc-container swdc-app