From 9405094a9bc21eb0bfb49321455760ba602305a8 Mon Sep 17 00:00:00 2001 From: devout-coder Date: Sat, 7 Sep 2024 19:20:02 +0530 Subject: [PATCH] final cut --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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