docs: two-repo Gitea workflow and LXC sync script for Ali operator
Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m15s
CI/CD Pipeline / Security Scanning (push) Successful in 2m28s
CI/CD Pipeline / Lint and Format (push) Failing after 52s
CI/CD Pipeline / Terraform Validation (push) Failing after 25s
CI/CD Pipeline / Kubernetes Validation (push) Successful in 26s
Deploy ChainID 138 / Deploy ChainID 138 (push) Failing after 43s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 31s
Validation / validate-genesis (push) Successful in 30s
Validation / validate-terraform (push) Failing after 28s
Validation / validate-kubernetes (push) Failing after 12s
Validation / validate-smart-contracts (push) Failing after 12s
Validation / validate-security (push) Failing after 1m19s
Validation / validate-documentation (push) Failing after 20s
Verify Deployment / Verify Deployment (push) Has been cancelled

Add FORGE_CANONICAL_REGISTRY, ALI_GITEA_TWO_REPO_WORKFLOW, and sync-ali-omnl-banking-portal-lxcs.sh for banking LXCs 5820-5828.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-28 15:30:24 -07:00
parent f7971b8164
commit 37e280f372
5 changed files with 234 additions and 7 deletions

View File

@@ -0,0 +1,47 @@
#!/usr/bin/env bash
# Sync OMNL banking portal to all Ali banking LXCs (58205828) via Proxmox pct.
#
# Usage:
# bash scripts/deployment/sync-ali-omnl-banking-portal-lxcs.sh # dry-run
# bash scripts/deployment/sync-ali-omnl-banking-portal-lxcs.sh --apply # deploy all
#
# Requires: root SSH to OMNL_PVE_HOST (default 192.168.11.13), built repo at ~/smom-dbis-138
set -euo pipefail
REPO_DIR="${OMNL_BANK_ROOT:-$HOME/smom-dbis-138}"
DEPLOY_SCRIPT="${REPO_DIR}/scripts/deployment/deploy-omnl-banking-portal-pct.sh"
APPLY=false
if [[ "${1:-}" == "--apply" ]]; then
APPLY=true
fi
# Banking portal LXCs — one per public FQDN product surface
CTIDS=(5820 5821 5822 5823 5824 5825 5826 5827 5828)
log() { echo "[$(date -Iseconds)] $*"; }
if [[ ! -x "$DEPLOY_SCRIPT" ]]; then
echo "Missing deploy script: $DEPLOY_SCRIPT" >&2
exit 1
fi
log "OMNL banking LXC sync — CTIDs: ${CTIDS[*]}"
log "Mode: $(if $APPLY; then echo APPLY; else echo DRY-RUN; fi)"
log "Repo: $REPO_DIR"
for CTID in "${CTIDS[@]}"; do
if $APPLY; then
log "Deploying CT $CTID..."
OMNL_PCT_CTID="$CTID" OMNL_BANK_ROOT="$REPO_DIR" bash "$DEPLOY_SCRIPT"
else
log "Would deploy CT $CTID → /srv/ali-portal (pct exec on ${OMNL_PVE_HOST:-192.168.11.13})"
fi
done
if $APPLY; then
log "All ${#CTIDS[@]} banking LXCs synced."
else
log "Dry-run complete. Re-run with --apply to deploy."
fi