Skip to content

Merge branch 'release/0.1.1' #13

Merge branch 'release/0.1.1'

Merge branch 'release/0.1.1' #13

Workflow file for this run

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