๐ fix: ๋ชจ๋ฌ์ z-index์ถ๊ฐ, page.tsx์ min-h-screen์ผ๋ก ์์ #45
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 to EC2 | |
| on: | |
| pull_request: | |
| types: [closed] | |
| branches: [main, develop] | |
| jobs: | |
| deploy: | |
| if: github.event.pull_request.merged == true | |
| runs-on: self-hosted | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Deploy to EC2 | |
| run: | | |
| echo "๐ Starting deployment..." | |
| echo "๐ Branch: ${{ github.ref_name }}" | |
| echo "๐ Commit: ${{ github.sha }}" | |
| # ๋ฉ๋ชจ๋ฆฌ ์ ๋ฆฌ | |
| echo "๐งน Cleaning up memory..." | |
| docker system prune -f | |
| # ์ฑ ๋๋ ํ ๋ฆฌ๋ก ์ฝ๋ ๋ณต์ฌ | |
| echo "๐ Copying files..." | |
| rsync -av --delete \ | |
| --exclude='.git' \ | |
| --exclude='node_modules' \ | |
| --exclude='.next' \ | |
| ./ /home/ubuntu/coplan/app/ | |
| # ๋ฐฐํฌ ๋๋ ํ ๋ฆฌ๋ก ์ด๋ | |
| cd /home/ubuntu/coplan | |
| # Docker ์ปจํ ์ด๋ ์ฌ์์ | |
| echo "๐ Restarting containers..." | |
| docker compose down | |
| docker compose up -d --build | |
| # ํฌ์ค์ฒดํฌ | |
| echo "๐ฅ Health checking..." | |
| sleep 15 | |
| if docker ps | grep -q coplan-app; then | |
| echo "โ Deployment completed successfully!" | |
| docker logs --tail 10 coplan-app | |
| echo "๐ Service available at: http://15.164.127.149" | |
| else | |
| echo "โ Deployment failed!" | |
| docker logs coplan-app | |
| exit 1 | |
| fi |