Skip to content

Commit

Permalink
chore: CI/CD Pipeline 구축 (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
son-daehyeon committed Aug 30, 2024
1 parent 15a683e commit 8fdcbcf
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy

on:
push:
branches:
- develop

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Deploy to server
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
port: ${{ secrets.SSH_PORT }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
script: |
cd ~/Backend
git checkout develop
git pull origin develop
./gradlew build
pkill -f 'java -jar Backend.jar'
java -jar build/libs/Backend.jar &

0 comments on commit 8fdcbcf

Please sign in to comment.