fix: S06.4 document Docker networks / S06.5 consolidate CI workflows (DRY patterns, standardized timeouts)
This commit is contained in:
@@ -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}
|
||||
Executable
+5
@@ -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
|
||||
Reference in New Issue
Block a user