Feat/#67 LogBack μ€μ #80
Workflow file for this run
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: API Server Java CI with Gradle on DEV | |
# develop λΈλμΉμ pull_request μμ λμ | |
on: | |
pull_request: | |
branches: [ "develop" ] | |
paths: # μλ ν¨ν€μ§μ λ³κ²½μ¬νμ΄ μλ pull-request λ§ λμ | |
- lionheart-api/** | |
- lionheart-domain/** | |
- lionheart-common/** | |
- lionheart-external/** | |
permissions: | |
contents: read | |
# λμ κ³Όμ | |
jobs: | |
build: | |
# ubuntu μ΅μ λ²μ μμ μλ | |
runs-on: ubuntu-latest | |
steps: | |
# 1) μν¬νλ‘μ° μ€ν μ κΈ°λ³Έμ μΌλ‘ 체ν¬μμ νμ | |
- name: checkout | |
uses: actions/checkout@v3 | |
# 2) JDK 11λ²μ μ€μΉ, λ€λ₯Έ JDK λ²μ μ μ¬μ©νλ€λ©΄ μμ | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
# 3) AWS Secrets Manger νκ²½λ³μ μ¬μ© | |
- name: Read secrets from AWS Secrets Manager into environment variables | |
uses: abhilash1in/[email protected] | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_DEV }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY_DEV }} | |
aws-region: ap-northeast-2 | |
secrets: /secret/lionheart-dev | |
parse-json: false | |
# build | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle # μ€μ application build(-x μ΅μ μ ν΅ν΄ ν μ€νΈλ μ μΈ) | |
run: ./gradlew lionheart-api:bootJar -x test | |