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 93d3dac commit 6389d6a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/server_cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,17 @@ jobs:
if: success()
uses: appleboy/ssh-action@v0.1.3
with:
timeout: 120s
command_timeout: 120s
debug: true
host: ${{ secrets.GCP_SERVER_VM_HOST }}
username: ${{ secrets.GCP_SERVER_VM_USER }}
key: ${{ secrets.GCP_SERVER_SSH_PRIVATE_KEY }}
port: 22
script: |
cd /home/patturning1/deployment
pkill -15 -f swdc-0.0.1-SNAPSHOT.jar
rm -rf /home/patturning1/deployment/*
scp -r ./server/build/libs/* patturning1@34.47.71.246:/home/patturning1/deployment/
nohup java -jar swdc-0.0.1-SNAPSHOT.jar &
cd /home/patturning1/Dark-Pattern-Detection-SWDeveloperContest/server
sudo docker stop swdc-container || true
sudo docker rm swdc-container || true
sudo docker build -t swdc-app .
sudo docker run -d -p 8080:8080 --name swdc-container swdc-app


0 comments on commit 6389d6a

Please sign in to comment.