From c45236423526ebae165c5c7fddbfc4a8eb41c7c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?toni=20=28=EC=9D=B4=EC=86=8C=EC=9D=80=29?= <144209738+saokiritoni@users.noreply.github.com> Date: Mon, 4 Nov 2024 15:42:20 +0900 Subject: [PATCH] =?UTF-8?q?=08Chore:=20=EC=9B=8C=ED=81=AC=ED=94=8C?= =?UTF-8?q?=EB=A1=9C=EC=9A=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 630a396..8bcc704 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,9 +41,15 @@ jobs: restore-keys: | gradle-${{ runner.os }}- + # Gradle 빌드 - name: Build with Gradle Wrapper run: ./gradlew build + # 빌드 후 JAR 파일 이름 변경 (app.jar로 통일) + - name: Rename JAR file + run: | + cp build/libs/*.jar build/libs/app.jar + # Docker 빌드 및 Docker Hub에 푸시 - name: Docker build & push to Docker Hub run: | @@ -80,7 +86,7 @@ jobs: -e SMTP_USERNAME=${{ secrets.SMTP_USERNAME }} \ -e SMTP_PASSWORD=${{ secrets.SMTP_PASSWORD }} \ ${{ secrets.DOCKER_USERNAME }}/docker-test:latest \ - sh -c "echo 'DB_URL=$DB_URL DB_USERNAME=$DB_USERNAME DB_PASSWORD=$DB_PASSWORD REDIS_HOST=$REDIS_HOST REDIS_PORT=$REDIS_PORT SMTP_HOST=$SMTP_HOST SMTP_PORT=$SMTP_PORT SMTP_USERNAME=$SMTP_USERNAME SMTP_PASSWORD=$SMTP_PASSWORD' && ls /app/resources/application.yml && cat /app/resources/application.yml && java -jar /app.jar" + sh -c "ls /app/resources/application.yml && cat /app/resources/application.yml && java -jar /app/app.jar" # 실행 중인 컨테이너 확인 sudo docker ps -a | grep "docker-test"