Skip to content

Feat: CICD Test Controller #3

Feat: CICD Test Controller

Feat: CICD Test Controller #3

Workflow file for this run

name: Deploy To Ec2
on:
push:
branches:
- main
jobs:
Deploy:
runs-on: ubuntu-latest
steps:
- name: SSH로 EC2에 접속하기!
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/backend
git pull origin main
./gradlew clean build
sudo fuser -k -n tcp 8080 || true
nohub java -jar build/libs/*SNAPSHOT.jar > ./output.log 2>&1 &