Skip to content

Commit

Permalink
Merge pull request #185 from ItRecode/hotfix/BE-236
Browse files Browse the repository at this point in the history
[BE-236] 상용 github actions에 SPRING_PROFILES_ACTIVE test추가
  • Loading branch information
Jaeyeop-Jung authored Mar 6, 2023
2 parents 4a0d59f + 8e734e1 commit 4da96c4
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
S3_ACCESS_KEY: ${{ secrets.PROD_S3_ACCESS_KEY }}
S3_SECRET_ACCESS_KEY: ${{ secrets.PROD_S3_SECRET_ACCESS_KEY }}
S3_BUCKET_NAME: ${{ secrets.PROD_S3_BUCKET_NAME }}
S3_DIRECTORY_NAME: ${{ secrets.PROD_S3_DIRECTORY_NAME }}
CORS_ORIGIN_NAME: ${{ secrets.PROD_CORS_ORIGIN_NAME }}

steps:
Expand All @@ -31,7 +32,13 @@ jobs:
distribution: 'adopt'

- name: Build with Gradle
run: ./gradlew clean build
run: ./gradlew clean build -Dspring.profiles.active=test

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build Docker image
uses: docker/build-push-action@v2
Expand All @@ -40,8 +47,6 @@ jobs:
push: true
tags: recordit/record-it:latest
file: ./dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

deploy:
needs: build
Expand Down

0 comments on commit 4da96c4

Please sign in to comment.