Merge branch 'release/1.0.3' #24
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 on Server | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| name: Deploy on Server | |
| runs-on: [self-hosted, boost-was] # λΌλ²¨μ ν΄λΉνλ runnerλ‘ μ€ν | |
| steps: | |
| # 1. λ ν¬μ§ν 리 ν΄λ‘ | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| # 2. Docker Composeλ‘ μλΉμ€ λΉλ λ° μ¬μμ | |
| - name: Build and Deploy Docker Images | |
| env: | |
| NODE_ENV: production | |
| MONGO_URI: ${{ secrets.MONGO_URI }} | |
| JWT_SECRET: ${{ secrets.JWT_SECRET }} | |
| JWT_REFRESH_SECRET: ${{ secrets.JWT_REFRESH_SECRET }} | |
| VITE_API_URL: ${{ secrets.VITE_API_URL }} | |
| run: | | |
| docker-compose up -d --build | |
| # 3. Clean up Old Images | |
| - name: Remove Dangling Images | |
| run: docker image prune -f |