Skip to content

Commit

Permalink
chore: add CICD properties
Browse files Browse the repository at this point in the history
  • Loading branch information
LSBsity committed Aug 3, 2024
1 parent a32f2c7 commit 07aca91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@ jobs:
steps:
- name: SSH로 EC2에 접속하기!
uses: appleboy/[email protected]
env:
APPLICATION-PROD_PROPERTIES: ${{ secrets.APPLICATION_PROD_PROPERTIES }}
with:

host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USERNAME }}
key: ${{ secrets.EC2_PRIVATE_KEY }}
script-stop: true
script: |
cd /home/ubuntu/backend
git pull origin main
echo "$APPLICATION_PROD_PROPERTIES" > src/main/resources/application-prod.yml
./gradlew clean build
sudo fuser -k -n tcp 8080 || true
nohup java -jar build/libs/*SNAPSHOT.jar > ./output.log 2>&1 &
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class TestController {

@GetMapping("/test")
public String test() {
return "hi hi hi !";
return "! hi hi hi !";
}

}

0 comments on commit 07aca91

Please sign in to comment.