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 552f83f commit 2ea4b25
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/server_cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ jobs:
run: |
cd server
./gradlew build -x test
- name: Deliver jar File
if: success()
uses: appleboy/[email protected]
with:
host: ${{ secrets.GCP_SERVER_VM_HOST }}
username: ${{ secrets.GCP_SERVER_VM_USER }}
key: ${{ secrets.GCP_SERVER_SSH_PRIVATE_KEY }}
port: 22
source: server/build/libs/swdc-0.0.1-SNAPSHOT.jar
target: /home/patturning1/deployment/
rm: true

- name: Deploy to GCP VM
if: success()
Expand All @@ -38,8 +50,6 @@ 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
Expand Down

0 comments on commit 2ea4b25

Please sign in to comment.