diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 28bee97..74fe6be 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -58,9 +58,9 @@ jobs: - name: SSH into EC2 instance and pull run: | ssh -i ~/.ssh/id_rsa ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }} << 'EOF' - aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username AWS --password-stdin ${{ secrets.ECR_REPOSITORY }} + aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username AWS --password-stdin ${{ secrets.ECR_REPOSITORY }} cd ~/doneify_dir - docker compose pull ${{ secrets.ECR_REPOSITORY }}/my_repo:latest + docker pull ${{ secrets.ECR_REPOSITORY }}/my_repo:latest docker compose down docker compose up -d EOF