fix: S06.4 document Docker networks / S06.5 consolidate CI workflows (DRY patterns, standardized timeouts)

This commit is contained in:
Gan, Jimmy
2026-07-11 01:42:55 +08:00
parent d325c84457
commit 40a554a9c9
5 changed files with 95 additions and 10 deletions
+23
View File
@@ -0,0 +1,23 @@
# CI Workflow Patterns (DRY Reference)
#
# All dashboard workflows follow this structure. Keep patterns consistent:
#
# --- Python Backend Tests ---
# Checkout → Setup Python → Cache Python → Install deps → Run tests
#
# --- Frontend Tests ---
# Checkout → Setup Node → Cache Node → Install deps → Run tests
#
# --- Build Image ---
# Checkout → Build & push to registry → Stream to NAS
#
# --- Deploy ---
# Checkout → Sync compose → Deploy → Health check → Smoke tests
#
# Cache key prefixes:
# deploy.yml (main): python, node
# deploy-dev.yml (dev): python-dev, node-dev
#
# Image names:
# deploy.yml (main): nas-dashboard:${GITEA_SHA}
# deploy-dev.yml (dev): nas-dashboard-dev:${GITEA_SHA}
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
set -e
if [ ! -d .git ]; then
git clone --depth=1 --branch "${GITHUB_REF_NAME:-main}" "http://100.78.131.124:3300/${GITHUB_REPOSITORY}.git" .
fi