diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 02de2a89..f46e3063 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -58,6 +58,7 @@ jobs: 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 }}/${{ env.IMAGE_NAME }} sudo docker stop ${{ env.IMAGE_NAME }} || true sudo docker rm ${{ env.IMAGE_NAME }} || true sudo docker rmi $(sudo docker images -aq) || true