Files
dd0c/.gitea/workflows/ci-p6-run.yml
Max Mayfield 6b79d3cbc9 Switch to Brian's registry at 192.168.86.11:30095, add CI build+push+deploy jobs
- All services pull from 192.168.86.11:30095 instead of localhost:5000
- Removed self-hosted registry container (Brian runs his own)
- CI workflows: test → build → push to registry → deploy
- build-push.sh and watch-loop.sh updated with new registry address
2026-03-02 05:28:35 +00:00

42 lines
1.3 KiB
YAML

name: CI — P6 Run
on:
push:
branches: [main]
paths: ['products/06-runbook-automation/**']
pull_request:
paths: ['products/06-runbook-automation/**']
jobs:
saas:
runs-on: ubuntu-latest
steps:
- name: Checkout
run: |
git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true
cd $GITHUB_WORKSPACE
- name: Install deps
run: cd $GITHUB_WORKSPACE/products/06-runbook-automation/saas && npm ci --include=dev
- name: Type check
run: cd $GITHUB_WORKSPACE/products/06-runbook-automation/saas && ./node_modules/.bin/tsc --noEmit
- name: Test
run: cd $GITHUB_WORKSPACE/products/06-runbook-automation/saas && npm test
build-push:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
run: git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true
- name: Build and push
run: |
cd $GITHUB_WORKSPACE/products
docker build -t 192.168.86.11:30095/dd0c-run:latest ./06-runbook-automation/saas
docker push 192.168.86.11:30095/dd0c-run:latest
- name: Deploy
run: cd $GITHUB_WORKSPACE/products && docker compose pull run && docker compose up -d run