Skip to content

CI/CD Pipeline

Frontend Deploy (Manual / On Push)

yaml
# .github/workflows/deploy.yml
name: Deploy Frontend
on:
  push:
    branches: [main]
jobs:
  frontend:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with: { node-version: 20 }
      - run: npm ci
      - run: npm run build
      - uses: cloudflare/wrangler-action@v3
        with:
          apiToken: ${{ secrets.CF_API_TOKEN }}
          accountId: ${{ secrets.CF_ACCOUNT_ID }}
          command: pages deploy dist --project-name workforce-planner --branch production

Backend Forecast Cron

Workflow tại .github/workflows/trigger-forecast.yml:

  • Schedule: cron: '0 2 * * 0' (Chủ nhật 9AM VN)
  • Manual trigger: Hỗ trợ chọn warehouse code + dry run

Tài liệu liên quan

BoxMe Forecast — Tài liệu kỹ thuật nội bộ