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 7dee4ca commit 57dfd0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/server_cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: server CI/CD Pipeline

on:
push:
paths:
- "server/**"
# paths:
# - "server/**"
branches:
- main

Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Deliver jar File to Internal Server through Bastion Host
run: |
ssh -i <(echo "${{ secrets.GCP_SERVER_SSH_PRIVATE_KEY }}") -o StrictHostKeyChecking=no patturning2@${{ secrets.GCP_SERVER_VM_HOST }} \
"scp -i <(echo '${{ secrets.GCP_INTERNAL_SERVER_SSH_PRIVATE_KEY }}') /home/patturning2/deployment/swdc-0.0.1-SNAPSHOT.jar patturning2@${{ secrets.GCP_INTERNAL_SERVER_VM_HOST }}:/home/patturning2/server/Dark-Pattern-Detection-SWDeveloperContest/deployment/"
"scp -i <(echo '${{ secrets.GCP_INTERNAL_SERVER_SSH_PRIVATE_KEY }}') /home/patturning2/deployment/server/build/libs/swdc-0.0.1-SNAPSHOT.jar patturning2@${{ secrets.GCP_INTERNAL_SERVER_VM_HOST }}:/home/patturning2/deployement/"
- name: Deploy to Internal Server through Bastion Host
if: success()
Expand All @@ -59,7 +59,7 @@ jobs:
sudo docker stop swdc-container || true
sudo docker rm swdc-container || true
cd /home/patturning2/server/Dark-Pattern-Detection-SWDeveloperContest/deployment
cd /home/patturning2/deployement
sudo docker build -t swdc-app .
sudo docker run -d -p 8080:8080 --name swdc-container -v /mnt:/mnt swdc-app

0 comments on commit 57dfd0e

Please sign in to comment.