Skip to content

Commit fe444d0

Browse files
authored
Update ci-cd.yml
1 parent ed8c84f commit fe444d0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ jobs:
5959

6060
- name: 도커 이미지 빌드 및 푸시
6161
run: |
62-
IMAGE_URI=${ECR_REGISTRY}/${ECR_REPOSITORY}:${IMAGE_TAG}
63-
docker build -t ${IMAGE_URI} .
64-
docker push ${IMAGE_URI}
62+
IMAGE_URI=$(aws sts get-caller-identity --query "Account" --output text).dkr.ecr.${{ env.AWS_REGION }}.amazonaws.com/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}
63+
docker build -t $IMAGE_URI .
64+
docker push $IMAGE_URI
6565
6666
deploy:
6767
runs-on: ubuntu-latest
@@ -91,4 +91,4 @@ jobs:
9191
9292
# 도커 컴포즈로 배포
9393
# 'up' 명령어가 docker-compose.yml 파일을 현재 디렉토리에서 찾음.
94-
docker-compose up -d --force-recreate
94+
docker-compose up -d --force-recreate

0 commit comments

Comments
 (0)