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 6389d6a commit 66b41a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/server_cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 66b41a6

Please sign in to comment.