Skip to content

메인페이지 프로젝트 조회 스킬태그 필터링 오류 수정 #21

메인페이지 프로젝트 조회 스킬태그 필터링 오류 수정

메인페이지 프로젝트 조회 스킬태그 필터링 오류 수정 #21

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: Java CD with Gradle
on:
push:
branches: [ "main" ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: execute remote ssh & deploy backend server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.REMOTE_SSH_HOST }}
username: ${{ secrets.REMOTE_SSH_USERNAME }}
key: ${{ secrets.REMOTE_SSH_KEY }}
port: ${{ secrets.REMOTE_SSH_PORT }}
script: |
whoami
sudo su
cd /home/ec2-user/backend/
git pull origin main
chmod +x ./gradlew
./gradlew build
pid=$(lsof -t -i:8080)
if [ -n "$pid" ]; then
kill -9 $pid
fi
nohup java -jar build/libs/devpals-0.0.1-SNAPSHOT.jar > log.txt 2>&1 &