π [FIX] db μμ±μ λ΅ μ΄κΈ°ν #213
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: CI | |
on: | |
push: | |
branches: [ "develop" ] | |
pull_request: | |
branches: [ "develop" ] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'corretto' | |
java-version: '17' | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }} | |
aws-region: ap-northeast-2 | |
- name: Read secrets from AWS Secrets Manager into environment variables | |
uses: abhilash1in/aws-secrets-manager-action@v2.1.0 | |
with: | |
secrets: | | |
/secret/lequu | |
parse-json: false | |
- name: application-secret.properties μμ± (νκ²½λ³μκ° AWS Secrets Managerλ³΄λ€ λΉ λ₯΄κ² λ‘λλμ΄μΌ ν λ) | |
run: | | |
cd src/main/resources | |
echo "${{ secrets.PROPERTIES }}" > ./application-secret.properties | |
- name: Build | |
run: | | |
chmod +x gradlew | |
./gradlew build -x test | |
shell: bash |