Skip to content

Commit

Permalink
[BE-236] hotfix: 상용 github actions에 SPRING_PROFILES_ACTIVE test추가
Browse files Browse the repository at this point in the history
- 상용 github actions에 SPRING_PROFILES_ACTIVE test추가
- docker/login-action@v1 추가하여 dockerhub login
  • Loading branch information
kdomo committed Mar 6, 2023
1 parent 4a0d59f commit 8e734e1
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 8e734e1

Please sign in to comment.