Skip to content

Commit

Permalink
Update server_cicd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Imsyp authored Sep 20, 2024
1 parent 66b41a6 commit 087338d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/server_cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ jobs:
key: ${{ secrets.GCP_SERVER_SSH_PRIVATE_KEY }}
port: 22
script: |
cd /home/patturning1/deployment
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

Expand Down

0 comments on commit 087338d

Please sign in to comment.