Skip to content

Commit

Permalink
fix: 배포 내용 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
lsc713 committed Jun 21, 2024
1 parent ba3efc8 commit 8695d58
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name : test GA
name : Deploy to EC2

on:
push:
Expand All @@ -10,8 +10,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Code Hello World
run: echo "Hello World"
- name: SSH 접속
uses: appleboy/[email protected]
with:
host: ${{ secrets.EC2_HOST}}
username: ${{ secrets.EC2_USERNAME}}
key: ${{ secrets.EC2_PRIVATE_KEY}}
script_stop: true
script: |
cd home/ubuntu/concurrencyPrac
git pull origin master
./gradlew clean build
sudo fuser -k -n tcp 8080 || true
nohup java -jar build/libs/*SNAPSHOT.jar > ./output.log 2>&1 &
- name: 여러문장
run: |
Expand Down

0 comments on commit 8695d58

Please sign in to comment.