[BE] chore: 존재하지 않는 경로로 요청 왔을 때, 예외 메시지만 로깅 (#730) #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy | |
on: | |
push: | |
branches: [ "develop" ] | |
paths: | |
- "backend/**" | |
jobs: | |
build: | |
runs-on: self-hosted-dev | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: "17" | |
distribution: "corretto" | |
- name: create-json | |
uses: jsdaniell/[email protected] | |
with: | |
name: "firebase-friendogly-private-key.json" | |
json: ${{ secrets.FIREBASE_FRIENDOGLY_PRIVATE_KEY }} | |
dir: './backend/src/main/resources/' | |
- name: Grant execute permission for gradlew | |
working-directory: ./backend | |
run: chmod +x gradlew | |
- name: Build project using Gradle | |
working-directory: ./backend | |
run: ./gradlew build | |
deploy: | |
needs: build | |
runs-on: self-hosted-dev | |
steps: | |
- name: Change permission | |
run: | | |
sudo chown -R ubuntu:ubuntu /home/ubuntu/actions-runner/_work/2024-friendogly | |
- name: Deploy | |
run: | | |
sudo chmod +x /home/ubuntu/deploy/deploy.sh | |
sudo /home/ubuntu/deploy/deploy.sh |