Skip to content

Commit

Permalink
changed commands finally
Browse files Browse the repository at this point in the history
  • Loading branch information
devout-coder committed Sep 7, 2024
1 parent 46aed45 commit 5673801
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +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 }}
cd ~/doneify_dir
docker compose pull doneify
docker compose pull ${{ secrets.ECR_REPOSITORY }}/my_repo
docker compose down
docker compose up -d
EOF

0 comments on commit 5673801

Please sign in to comment.