Reusable Gitea Actions workflows for lint, test, build, and deploy: - lint-python, lint-node, lint-rust - test-python, test-node, test-rust - build-push (Docker build + push to Gitea registry) - deploy-k8s (GitOps image tag update in cluster repo) Plus example caller workflows for python-fullstack, rust-service, and node-frontend stacks. Branch refs aligned to staging per CON-570 standards.
35 lines
824 B
YAML
35 lines
824 B
YAML
# Example CI workflow for a Python backend + Node.js frontend service (e.g. h1per-pms)
|
|
# Place in your repo at: .gitea/workflows/ci.yml
|
|
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main, staging]
|
|
push:
|
|
branches: [main, staging]
|
|
|
|
concurrency:
|
|
group: ci-${{ gitea.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
lint-backend:
|
|
uses: wectrl-net/ci-templates/.gitea/workflows/lint-python.yaml@main
|
|
with:
|
|
python-version: "3.13"
|
|
|
|
lint-frontend:
|
|
uses: wectrl-net/ci-templates/.gitea/workflows/lint-node.yaml@main
|
|
with:
|
|
working-directory: web
|
|
|
|
test-backend:
|
|
uses: wectrl-net/ci-templates/.gitea/workflows/test-python.yaml@main
|
|
with:
|
|
python-version: "3.13"
|
|
|
|
test-frontend:
|
|
uses: wectrl-net/ci-templates/.gitea/workflows/test-node.yaml@main
|
|
with:
|
|
working-directory: web
|