From 07a428ccbc4b02b518aeeae2828d884fbbd4ffe7 Mon Sep 17 00:00:00 2001 From: PokingTeemo <110599863+PokingTeemo@users.noreply.github.com> Date: Mon, 25 Nov 2024 16:30:58 +0900 Subject: [PATCH] Update gradle-publish.yml --- .github/workflows/gradle-publish.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/gradle-publish.yml b/.github/workflows/gradle-publish.yml index a533613..fe6df39 100644 --- a/.github/workflows/gradle-publish.yml +++ b/.github/workflows/gradle-publish.yml @@ -55,6 +55,15 @@ jobs: run: chmod +x gradlew working-directory: ${{ secrets.WORKING_DIRECTORY }} + # Gradle 빌드 및 테스트 실행 (로컬 컨테이너의 MySQL 사용) + - name: Build and Test with Gradle + run: ./gradlew clean build -Dspring.profiles.active=local + working-directory: ${{ secrets.WORKING_DIRECTORY }} + env: + SPRING_DATASOURCE_URL: jdbc:mysql://localhost:3306/aimo + SPRING_DATASOURCE_USERNAME: admin + SPRING_DATASOURCE_PASSWORD: ${{ secrets.DB_PASSWORD }} + # 빌드된 JAR 파일을 EC2로 복사 - name: Copy JAR file to EC2 uses: appleboy/scp-action@master