Skip to content

Commit

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

hotfix: cd 수정
  • Loading branch information
l2yujw authored Nov 29, 2024
2 parents 3371169 + 0fc969d commit c6e2c06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ jobs:
run: |
ssh -o StrictHostKeyChecking=no -i bottler-keypair.pem ubuntu@${{ secrets.EC2_PUBLIC_IP }} <<EOF
aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | sudo docker login --username AWS --password-stdin ${{ secrets.ECR_URI }}
sudo docker pull ${{ secrets.ECR_URI }}/bottler-backend:${{ github.sha }}
docker pull ${{ secrets.ECR_URI }}/bottler-backend:${{ github.sha }}
cd ~/docker-compose
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
/usr/local/bin/docker-compose -f docker-compose.yml down
/usr/local/bin/docker-compose -f docker-compose.yml up -d
EOF

0 comments on commit c6e2c06

Please sign in to comment.