Skip to content

Commit

Permalink
final cut
Browse files Browse the repository at this point in the history
  • Loading branch information
devout-coder committed Sep 7, 2024
1 parent ecd9344 commit 9405094
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9405094

Please sign in to comment.