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