Skip to content

Commit c1ac495

Browse files
authored
Merge pull request #144 from prgrms-web-devcourse-final-project/deploy-1
Deploy 1
2 parents 3ce4397 + f427bf0 commit c1ac495

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
CONTAINER_PORT: 8080 # 컨테이너 내부 포트(스프링부트)
1111
EC2_INSTANCE_TAG_NAME: team12-ec2-1 # 배포 대상 EC2 Name 태그
1212
DOCKER_NETWORK: common # 도커 네트워크
13-
BACKEND_DIR: . # Dockerfile 위치
13+
BACKEND_DIR: .
1414

1515
concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }} # 커밋이 짧은 시간안에 몰려도 최신 커밋에 대해서만 액션이 수행되도록
@@ -86,7 +86,7 @@ jobs:
8686
DOT_ENV: ${{ secrets.DOT_ENV }}
8787
run: |
8888
# .env가 없으면 빌드 캐시가 매번 깨질 수 있으므로 항상 생성
89-
echo "DOT_ENV" > .env
89+
echo "$DOT_ENV" > .env
9090
9191
- name: Docker Buildx 설치
9292
uses: docker/setup-buildx-action@v3
@@ -110,7 +110,7 @@ jobs:
110110
- name: 빌드 앤 푸시
111111
uses: docker/build-push-action@v6
112112
with:
113-
context: ${{ env.BACKEND_DIR }}
113+
context: .
114114
push: true
115115
cache-from: type=gha
116116
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)