Skip to content

Commit 82f8153

Browse files
committed
refactor: CI/CD 수정
1 parent 05db119 commit 82f8153

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/dev_deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
# 1. EC2 서버에 .env 파일을 새로 생성합니다.
5959
# GitHub Secrets의 값을 가져와 파일에 한 줄씩 씁니다.
6060
cat << EOF > .env
61+
DOCKER_IMAGE_NAME=${{ secrets.DOCKER_USERNAME }}/withmorning:latest
6162
DB_URL=${{ secrets.DB_URL }}
6263
DB_USER=${{ secrets.DB_USER }}
6364
DB_PASS=${{ secrets.DB_PASS }}

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ version: '3.8' # Docker Compose 파일 버전
33
services:
44
# Spring Boot 애플리케이션 서비스
55
app:
6+
image: ${DOCKER_IMAGE_NAME}
67
container_name: withmorning-app
78
ports:
89
- "8080:8080" # 호스트의 8080 포트를 컨테이너의 8080 포트와 연결합니다.

0 commit comments

Comments
 (0)