Merge branch 'dev' into main #81
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 | |
# 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 |