mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 16:27:37 +01:00
* builder-agents: probe-only mode and masked failure detail * key_present before the install block * Probe gemini with the runner's key: root loads the root-only env * Probe with --skip-trust * Launch Antigravity with --skip-trust so a builder run never stalls on the folder-trust prompt --------- Co-authored-by: catomean <catomean@users.noreply.github.com>
48 lines
1.7 KiB
YAML
48 lines
1.7 KiB
YAML
# Install Cursor, Grok and Antigravity on the cloud builder and restart it.
|
|
# Same SSH setup as box-doctor.yml. Prints install/key-present/probe verdicts
|
|
# only — never a secret value (public repo, public logs).
|
|
# gh workflow run builder-agents.yml
|
|
name: Builder agents
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
restart:
|
|
description: "Drain-then-restart the runner afterwards"
|
|
required: false
|
|
default: true
|
|
type: boolean
|
|
probe_only:
|
|
description: "Only report installs/keys and probe (no install, no restart)"
|
|
required: false
|
|
default: false
|
|
type: boolean
|
|
|
|
concurrency:
|
|
group: builder-agents
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
install:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
env:
|
|
HETZNER_IP: ${{ vars.HETZNER_IP }}
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- name: SSH setup (same key and host as deploy.yml)
|
|
run: |
|
|
test -n "$HETZNER_IP" || { echo "::error::org variable HETZNER_IP is not set"; exit 1; }
|
|
mkdir -p ~/.ssh
|
|
printf '%s\n' "${{ secrets.HETZNER_SSH_KEY }}" > ~/.ssh/id_deploy
|
|
chmod 600 ~/.ssh/id_deploy
|
|
ssh-keyscan -H "$HETZNER_IP" >> ~/.ssh/known_hosts 2>/dev/null
|
|
printf 'Host %s\n IdentityFile ~/.ssh/id_deploy\n IdentitiesOnly yes\n' "$HETZNER_IP" >> ~/.ssh/config
|
|
- name: Install and report
|
|
env:
|
|
RESTART: ${{ inputs.restart }}
|
|
PROBE_ONLY: ${{ inputs.probe_only }}
|
|
run: |
|
|
[ "$RESTART" = "true" ] && A="" || A="--no-restart"; [ "$PROBE_ONLY" = "true" ] && A="--probe-only"
|
|
ssh "root@$HETZNER_IP" bash -s -- $A < scripts/hetzner/install-builder-agents.sh
|