Files
proxmox/scripts/dev-vm/setup-act-runner.sh
defiQUG fbda1b4beb
Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
docs: Ledger Live integration, contract deploy learnings, NEXT_STEPS updates
- 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>
2026-02-12 15:46:57 -08:00

35 lines
1.0 KiB
Bash

#!/usr/bin/env bash
# Install and register act_runner for Gitea Actions on dev-vm (5700).
# Usage: GITEA_RUNNER_REGISTRATION_TOKEN=xxx bash setup-act-runner.sh
# Get token: https://gitea.d-bis.org/-/admin/actions/runners
set -euo pipefail
ACT_RUNNER_VERSION="${ACT_RUNNER_VERSION:-0.2.13}"
INSTANCE="${INSTANCE:-http://192.168.11.60:3000}"
WORK_DIR="${WORK_DIR:-/opt/act_runner}"
TOKEN="${GITEA_RUNNER_REGISTRATION_TOKEN:-}"
if [ -z "$TOKEN" ]; then
echo "Set GITEA_RUNNER_REGISTRATION_TOKEN"
exit 1
fi
mkdir -p "$WORK_DIR"
cd "$WORK_DIR"
ARCH=$(uname -m)
case "$ARCH" in x86_64) ARCH="amd64" ;; aarch64|arm64) ARCH="arm64" ;; *) echo "Unsupported: $ARCH"; exit 1 ;; esac
BINARY="act_runner-${ACT_RUNNER_VERSION}-linux-${ARCH}"
URL="https://dl.gitea.com/act_runner/${ACT_RUNNER_VERSION}/${BINARY}"
if [ ! -f "./act_runner" ]; then
curl -sL -o act_runner "$URL"
fi
chmod +x ./act_runner
if [ ! -f .runner ]; then
./act_runner register --no-interactive --instance "$INSTANCE" --token "$TOKEN"
fi
echo "Ready. Run: ./act_runner daemon"