Skip to content

Commit

Permalink
Merge pull request #43 from prgrms-web-devcourse-final-project/hotfix/#…
Browse files Browse the repository at this point in the history
…32-cd

hotfix: ci-cd 수정
  • Loading branch information
l2yujw authored Nov 29, 2024
2 parents 81e89b4 + 25b00e7 commit c3c5aaa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ jobs:
- name: EC2로 Docker Compose 배포
run: |
ssh -o StrictHostKeyChecking=no -i bottler-keypair.pem ubuntu@${{ secrets.EC2_PUBLIC_IP }} <<EOF
docker pull ${{ secrets.ECR_URI }}:${{ github.sha }}
sudo docker pull ${{ secrets.ECR_URI }}/bottler-backend:${{ github.sha }}
cd ~/docker-compose
TAG=${{ github.sha }} docker-compose -f docker-compose.yml down
TAG=${{ github.sha }} docker-compose -f docker-compose.yml up -d
export TAG=${{ github.sha }}
sudo /usr/local/bin/docker-compose -f docker-compose.yml down
sudo /usr/local/bin/docker-compose -f docker-compose.yml up -d
EOF

0 comments on commit c3c5aaa

Please sign in to comment.