Skip to content

Commit

Permalink
Merge branch 'main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
deveunhwa committed Nov 5, 2024
2 parents 48d1319 + f7cb32d commit 3ea3365
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,22 +106,21 @@ jobs:
sudo systemctl reload nginx
# Blue-Green 설정 Docker Compose 실행
- name: Deploy with Docker Compose on EC2
uses: appleboy/ssh-action@v0.1.6
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USER }}
key: ${{ secrets.EC2_SSH_KEY }}
script: |
cd ~/bitta-project
docker-compose down
docker-compose up -d --no-deps
sudo nginx -s reload
# test
- name: Deploy with Docker Compose on EC2
uses: appleboy/ssh-action@v0.1.6
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USER }}
key: ${{ secrets.EC2_SSH_KEY }}
script: |
cd ~/bitta-project
docker-compose down
docker-compose up -d --no-deps
sudo nginx -s reload
# 테스트 단계
- name: Test Frontend Response
run: curl --fail http://${{ secrets.EC2_HOST }} || exit 1

- name: Test Backend Response
run: curl --fail http://${{ secrets.EC2_HOST }}/api/ || exit 1

run: curl --fail http://${{ secrets.EC2_HOST }}/api/ || exit 1

0 comments on commit 3ea3365

Please sign in to comment.