Files
proxmox/scripts/verify/report-gitea-cd-parity.sh
defiQUG 377369a5be
Some checks failed
Deploy to Phoenix / deploy (push) Has been skipped
Deploy to Phoenix / deploy-atomic-swap-dapp (push) Has been skipped
Deploy to Phoenix / cloudflare (push) Has been skipped
Deploy to Phoenix / validate (push) Failing after 2s
feat(gitea-phoenix): gov runtime, deploy/template parity, workflow dedupe docs
- Add gov-portals-runtime.v1.json + schema; jq gate in validate-config-files
- Python: parity-deploy-targets, parity-operational-template (IP strict, hostname WARN),
  parity-gov-portals-runtime; validate-vm-routing-parity.sh wrapper
- check-gov-portal-workflow-canonical-strings.sh for monorepo Pattern A
- PORTAL_WORKFLOW_PARITY.md; template headers; repos README; operator checklist secrets
- report-gitea-cd-parity runs full VM routing parity; task doc marked complete
- GOV_PORTALS_XOM_DEV + GITEA_GOV + MASTER_INDEX + matrix doc cross-links

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-12 15:55:50 -07:00

42 lines
1.3 KiB
Bash
Executable File

#!/usr/bin/env bash
# Report Gitea CD wiring: unique deploy-target repos vs workflow files in this workspace.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
TARGETS="$ROOT/phoenix-deploy-api/deploy-targets.json"
if [[ ! -f "$TARGETS" ]]; then
echo "Missing: $TARGETS" >&2
exit 1
fi
if ! command -v jq >/dev/null 2>&1; then
echo "jq required" >&2
exit 1
fi
echo "== Unique (repo, branch, target) in deploy-targets.json =="
jq -r '.targets[] | "\(.repo)\t\(.branch // "main")\t\(.target // "default")"' "$TARGETS" | sort -u
echo ""
echo "== Workflows in proxmox workspace submodules (sample) =="
for d in explorer-monorepo cross-chain-pmm-lps; do
if [[ -d "$ROOT/$d/.gitea/workflows" ]]; then
echo "--- $d ---"
ls -1 "$ROOT/$d/.gitea/workflows" 2>/dev/null || true
fi
done
echo ""
echo "== Workflow templates (config/gitea-workflow-templates/repos/) =="
shopt -s nullglob
for f in "$ROOT/config/gitea-workflow-templates/repos/"*.yml; do
basename "$f"
done
shopt -u nullglob
echo ""
echo "== Non-blockchain VM matrix + parity (inventory, deploy-targets, template, gov runtime) =="
if [[ -x "$ROOT/scripts/verify/validate-vm-routing-parity.sh" ]]; then
"$ROOT/scripts/verify/validate-vm-routing-parity.sh" "$ROOT"
else
echo "(validate-vm-routing-parity.sh not executable)"
fi