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 Oct 11, 2024
1 parent 3f49aab commit b7614db
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/server_cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,27 @@ jobs:
cd server
./gradlew build -x test
- name: Deploy to Internal Server through Bastion Host
if: success()
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.GCP_INTERNAL_SERVER_VM_HOST }}
username: ${{ secrets.GCP_SERVER_VM_USER }}
key: ${{ secrets.GCP_INTERNAL_SERVER_SSH_PRIVATE_KEY }}
port: 22
proxy_host: ${{ secrets.GCP_SERVER_VM_HOST }}
proxy_username: ${{ secrets.GCP_SERVER_VM_USER }}
proxy_key: ${{ secrets.GCP_SERVER_SSH_PRIVATE_KEY }}
proxy_port: 22
script: |
sudo docker image prune -f
# sudo docker stop swdc-container || true
# sudo docker rm swdc-container || true
# cd /home/patturning2/deployment
# sudo docker build -t swdc-app .
# sudo docker run -d -p 8080:8080 --name swdc-container -v /mnt:/mnt swdc-app
- name: Deliver jar File to Internal Server through Bastion Host
if: success()
uses: appleboy/scp-action@v0.1.7
Expand Down

0 comments on commit b7614db

Please sign in to comment.