Skip to content

Merge branch 'dev'

Merge branch 'dev' #77

Workflow file for this run

name: CI
# main,cicd λΈŒλžœμΉ˜μ— push, PR 이벀트 λ°œμƒμ‹œ λ™μž‘.
on:
push:
branches:
- 'main'
- 'cicd'
pull_request:
branches:
- 'main'
- 'cicd'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
#μžλ°”λ²„μ „ 17 μ„ΈνŒ…
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
#githubsecrets yml ν™˜κ²½λ³€μˆ˜ μ£Όμž….
- name: Set Yaml
uses: microsoft/variable-substitution@v1
with:
files: ./src/main/resources/application.yml
env:
spring.datasource.url: ${{ secrets.DB_URL }}
spring.datasource.username: ${{ secrets.DB_USERNAME }}
spring.datasource.password: ${{ secrets.DB_PASSWORD }}
spring.datasource.driver-class-name: ${{ secrets.DB_DRIVER }}
spring.jwt.secret: ${{ secrets.JWT_SECRET }}
spring.mail.username: ${{secrets.MAIL_USERNAME}}
spring.mail.password: ${{secrets.MAIL_PASSWORD}}
spring.data.redis.host: ${{secrets.REDIS_HOST}}
spring.data.redis.port: ${{secrets.REDIS_PORT}}
spring.data.redis.password: ${{secrets.REDIS_PASSWORD}}
cloud.aws.credentials.accessKey: ${{secrets.S3_ACCESSKEY}}
cloud.aws.credentials.secretKey: ${{secrets.S3_SECRETKEY}}
cloud.aws.s3.bucketName: ${{secrets.S3_BUCKETNAME}}
#gradlew 싀행을 μœ„ν•œ κΆŒν•œ μΆ”κ°€
- name: Grant execute permission for gradlew
run: chmod +x gradlew
# Spring Boot μ–΄ν”Œλ¦¬μΌ€μ΄μ…˜ Build (1)
- name: Spring Boot Build
run: ./gradlew clean build -x test