Skip to content

Commit

Permalink
add: docker login
Browse files Browse the repository at this point in the history
Seokyeong237 committed Jan 20, 2024
1 parent db843e6 commit c5da300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ jobs:
docker push $ECR_REGISTRY/$ECR_REPOSITORY
mkdir scripts
touch scripts/deploy.sh
echo "aws ecr get-login --region ap-northeast-2 --no-include-email" >> scripts/deploy.sh
echo "aws ecr get-login --region ap-northeast-2 --no-include-email" | docker login --username AWS --password-stdin $ECR_REGISTRY" >> scripts/deploy.sh
echo "docker rm -f codedeploy" >> scripts/deploy.sh
echo "docker rmi $ECR_REGISTRY/$ECR_REPOSITORY" >> scripts/deploy.sh
echo "docker pull $ECR_REGISTRY/$ECR_REPOSITORY" >> scripts/deploy.sh

0 comments on commit c5da300

Please sign in to comment.