Skip to content

Feat/#67 LogBack μ„€μ • #80

Feat/#67 LogBack μ„€μ •

Feat/#67 LogBack μ„€μ • #80

Workflow file for this run

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