Skip to content

Commit 7cd0b8a

Browse files
committed
docker 설정
1 parent 2940d35 commit 7cd0b8a

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/cd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
# 3. GitHub Secret으로부터 .env 파일을 생성합니다.
3838
echo "Creating .env file..."
3939
echo "${{ secrets.ENV_FILE }}" > .env
40+
echo "DOCKER_IMAGE=${{ env.IMAGE }}:${{ github.sha }}" >> .env
4041
4142
# 4. ci.yml에서 빌드한 최신 Docker 이미지를 pull 받습니다.
4243
echo "Pulling latest docker image from registry..."

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ version: "3.8"
33
services:
44
springboot-app:
55
build: .
6+
image: ${DOCKER_IMAGE:-tokbaro-app}
67
container_name: tokbaro-app
78
depends_on:
89
- redis

0 commit comments

Comments
 (0)