Files
network-app-api/.gitea/workflows/ci.yml
Hammer 5c9df803c2
All checks were successful
CI/CD / check (push) Successful in 26s
CI/CD / deploy (push) Successful in 1s
fix: resolve TS error in seed.ts + use compose.deploy for CI
2026-01-30 04:26:10 +00:00

41 lines
926 B
YAML

name: CI/CD
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Type check
run: bun x tsc --noEmit
deploy:
needs: check
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Deploy to Dokploy
run: |
curl -fsSL -X POST "${{ secrets.DOKPLOY_URL }}/api/compose.deploy" \
-H "Content-Type: application/json" \
-H "x-api-key: ${{ secrets.DOKPLOY_API_TOKEN }}" \
-d '{"composeId": "${{ secrets.DOKPLOY_COMPOSE_ID }}"}'
echo "Deploy triggered on Dokploy"