From 9c7a90fdf42d8611f4f1d1afe6bcc6b76b82a555 Mon Sep 17 00:00:00 2001 From: dongkyun-dev Date: Thu, 11 Jan 2024 22:03:00 +0900 Subject: [PATCH] feat: test --- .github/workflows/deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 52a578a3..dbd8a90c 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -57,8 +57,8 @@ jobs: key: ${{ secrets.EC2_SSH_PRIVATE_KEY }} envs: REGISTRY,REPOSITORY,IMAGE_TAG,AWS_REGION,IMAGE_NAME script: |- - sudo $(aws ecr get-login-password --no-include-email --region ${{ env.AWS_REGION }}) | - sudo docker login --username AWS --password-stdin ${{ env.REGISTRY }} + aws ecr get-login-password --region ${{ env.AWS_REGION }} | + sudo docker login --username AWS --password-stdin ${{ env.REGISTRY }}/${{ env.REPOSITORY }} sudo docker stop ${{ env.IMAGE_NAME }} || true sudo docker rm ${{ env.IMAGE_NAME }} || true sudo docker rmi $(sudo docker images -aq) || true