fix: AI 요약 조회 시 포인트 적립 제거 (히스토리 유지) #57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Backend to EC2 | |
| on: | |
| push: | |
| branches: | |
| - developV2 | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Deploy to EC2 | |
| uses: appleboy/ssh-action@v1.0.3 | |
| with: | |
| host: ${{ secrets.EC2_HOST }} | |
| username: ${{ secrets.EC2_USER }} | |
| key: ${{ secrets.EC2_SSH_KEY }} | |
| # EC2에서 Gradle 빌드·이미지 생성이 길 수 있음 (기본 10m 초과 시 여기만 늘리면 됨) | |
| command_timeout: 20m | |
| script: | | |
| set -euo pipefail | |
| cd ~/devpick-backend | |
| git fetch origin developV2 | |
| git checkout developV2 | |
| git reset --hard origin/developV2 | |
| # 이전 배포에서 남은 동일 이름 컨테이너/고아 컨테이너로 인한 Conflict 방지 (볼륨은 유지) | |
| docker compose down --remove-orphans || true | |
| docker compose up -d --build |