Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands - CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround - CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check - NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere - MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates - LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference Co-authored-by: Cursor <cursoragent@cursor.com>
32 lines
1.4 KiB
Bash
32 lines
1.4 KiB
Bash
#!/usr/bin/env bash
|
|
# Add as4-411 as a git submodule to Sankofa (Phoenix) for deployable LogicApps-like solution in Sankofa Marketplace.
|
|
# Run after as4-411 has been pushed to Gitea: GITEA_TOKEN=xxx bash scripts/dev-vm/push-all-projects-to-gitea.sh
|
|
# Usage: bash scripts/dev-vm/add-as4-411-submodule-to-sankofa.sh
|
|
# Optional: SANKOFA_DIR=/path/to/Sankofa
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
[ -f "$PROJECT_ROOT/.env" ] && set +u && source "$PROJECT_ROOT/.env" 2>/dev/null || true && set -u
|
|
|
|
GITEA_ORG="${GITEA_ORG:-d-bis}"
|
|
GITEA_URL="${GITEA_URL:-https://gitea.d-bis.org}"
|
|
SANKOFA_DIR="${SANKOFA_DIR:-/home/intlc/projects/Sankofa}"
|
|
SUBMODULE_PATH="marketplace/as4-411"
|
|
REPO_URL="$GITEA_URL/$GITEA_ORG/as4-411.git"
|
|
|
|
if [ ! -d "$SANKOFA_DIR/.git" ]; then
|
|
echo "Sankofa not found or not a git repo: $SANKOFA_DIR"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -f "$SANKOFA_DIR/.gitmodules" ] && grep -q "path = $SUBMODULE_PATH" "$SANKOFA_DIR/.gitmodules" 2>/dev/null; then
|
|
echo "Submodule $SUBMODULE_PATH already present in Sankofa."
|
|
exit 0
|
|
fi
|
|
|
|
echo "Adding as4-411 as submodule at $SUBMODULE_PATH in Sankofa (Phoenix / Sankofa Marketplace)"
|
|
cd "$SANKOFA_DIR"
|
|
git submodule add "$REPO_URL" "$SUBMODULE_PATH"
|
|
echo "Done. Commit with: git add .gitmodules $SUBMODULE_PATH && git commit -m 'Add as4-411 as marketplace submodule (LogicApps-like deployable)'"
|