Skip to content

Commit

Permalink
�Chore: 워크플로우 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
saokiritoni authored Nov 4, 2024
1 parent eac7bdf commit c452364
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit c452364

Please sign in to comment.