Skip to content

Commit

Permalink
💚 ci/cd: Actions 스크립트 S3 관련 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
seheonnn committed Jan 23, 2024
1 parent 78ab0c0 commit 719c900
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Java CI/CD with Gradle

on:
pull_request:
branches: ["develop"]
branches: [ "develop" ]
push:
branches: ["develop"]
branches: [ "develop" ]

jobs:
ci:
Expand Down Expand Up @@ -32,14 +32,18 @@ jobs:
with:
files: ./src/main/resources/application-prod.yml
env:
spring.datasource.url: ${{ secrets.DB_URL }}
spring.datasource.username: ${{ secrets.DB_USERNAME }}
spring.datasource.url: ${{ secrets.DB_URL }}
spring.datasource.username: ${{ secrets.DB_USERNAME }}
spring.datasource.password: ${{ secrets.DB_PW }}
spring.jwt.secret: ${{ secrets.JWT_SECRET }}
spring.jwt.token.access-expiration-time: ${{ secrets.JWT_ACCESS_EXPIRATION_TIME }}
spring.jwt.token.refresh-expiration-time: ${{ secrets.JWT_REFRESH_EXPIRATION_TIME }}
spring.data.redis.host: ${{ secrets.REDIS_HOST }}
spring.data.redis.port: ${{ secrets.REDIS_PORT }}
cloud.aws.s3.bucket: ${{ secrets.BUCKET }}
cloud.aws.region.static: ${{ secrets.REGION }}
cloud.aws.credentials.accessKey: ${{ secrets.S3_ACCESS_KEY }}
cloud.aws.credentials.secretKey: ${{ secrets.S3_SECRET_KEY }}

- name: 3) Set prod.yml - Debug
run: |
Expand Down

0 comments on commit 719c900

Please sign in to comment.