Skip to content

Commit

Permalink
fix(ci): ECR 로그인 구현 부분 추가 (#79)
Browse files Browse the repository at this point in the history
개요

- ECR 로그인을 하여 접근을 우선 얻어내야 docker pull이 가능하다. 따라서
해당 부분을 추가해준다.
  • Loading branch information
seungholee-dev authored Apr 12, 2024
1 parent 3e3a5a5 commit e68432d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ jobs:
docker stop myapp || true
docker rm myapp || true
aws ecr get-login-password --region $AWS_REGION_CODE | docker login --username AWS --password-stdin $ECR_REGISTRY
docker pull $ECR_REGISTRY/$ECR_REPOSITORY:latest
docker run -d --name myapp -p 8080:8080 $ECR_REGISTRY/$ECR_REPOSITORY:latest

0 comments on commit e68432d

Please sign in to comment.