From 8e734e1a533d4d1e18f9fff332b1cbc274262cc8 Mon Sep 17 00:00:00 2001 From: kdomo Date: Mon, 6 Mar 2023 20:53:54 +0900 Subject: [PATCH] =?UTF-8?q?[BE-236]=20hotfix:=20=EC=83=81=EC=9A=A9=20githu?= =?UTF-8?q?b=20actions=EC=97=90=20SPRING=5FPROFILES=5FACTIVE=20test?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20-=20=EC=83=81=EC=9A=A9=20github=20actions?= =?UTF-8?q?=EC=97=90=20SPRING=5FPROFILES=5FACTIVE=20test=EC=B6=94=EA=B0=80?= =?UTF-8?q?=20-=20docker/login-action@v1=20=EC=B6=94=EA=B0=80=ED=95=98?= =?UTF-8?q?=EC=97=AC=20dockerhub=20login?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-prod.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index ccce6870..dfc1d975 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -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: @@ -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 @@ -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