diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c493759b..0eb1f387 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,26 +10,19 @@ permissions: jobs: build: runs-on: ubuntu-latest - env: - admin-secret-key: ${{ secrets.ADMIN_SECRET_KEY }} - aws_accessKey: ${{ secrets.AWS_ACCESS_KEY }} - aws_secretKey: ${{ secrets.AWS_SECRET_KEY }} - baseball-api-key: ${{ secrets.BASEBALL_API_KEY }} - basketball-api-key: ${{ secrets.BASKETBALL_API_KEY }} - football-api-key: ${{ secrets.FOOTBALL_API_KEY }} - google-api-key: ${{ secrets.GOOGLE_API_KEY }} - google-api-secret: ${{ secrets.GOOGLE_API_SECRET }} - jwt.secret_key: ${{ secrets.JWT_SECRET_KEY }} - kakao-api-key: ${{ secrets.KAKAO_API_KEY }} - naver-api-key: ${{ secrets.NAVER_API_KEY }} - naver-api-secret: ${{ secrets.NAVER_API_SECRET }} - rds_username: ${{ secrets.RDS_USERNAME }} - rds_password: ${{ secrets.RDS_PASSWORD }} steps: - name: Git Checkout uses: actions/checkout@v4 + # .properties file 생성 + - name: application.properties 생성 + run: | + touch ./src/main/resources/application-prod.yml + touch ./src/main/resources/application-test-prod.yml + + echo "${{ secrets.PROD_YML }}" > ./application-prod.yml + echo "${{ secrets.TEST_PROD_YML }}" > ./application-test-prod.yml - name: Java Setup uses: actions/setup-java@v2 @@ -39,6 +32,8 @@ jobs: cache: gradle - name: Build with Gradle + env: + SPRING_PROFILES_ACTIVE: prod run: | ./gradlew clean build