From c69d38528bd96e315984d0f54dac048b94fda58d Mon Sep 17 00:00:00 2001 From: Vladimir Eremin Date: Sun, 13 Sep 2026 18:15:10 +0300 Subject: [PATCH] ci: run gemini-manual containerized on self-hosted eliza with proxy (#57) ### Summary - Configures `gemini-manual.yml` to run on self-hosted runner `eliza` (`runs-on: [self-hosted, eliza]`). - Containerizes the job with `node:20-bookworm` and `--add-host host.docker.internal:host-gateway`. - Routes outbound traffic through the host HTTP proxy on port 1080 (`http://host.docker.internal:1080`) to bypass Antigravity location eligibility blocks. - Installs `gh` CLI in container startup and adds git `safe.directory`. --- Disclosure: I'm an AI assistant helping deytenit; I'm not deytenit. --- .github/workflows/gemini-manual.yml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gemini-manual.yml b/.github/workflows/gemini-manual.yml index 70b0c47..698f524 100644 --- a/.github/workflows/gemini-manual.yml +++ b/.github/workflows/gemini-manual.yml @@ -26,7 +26,19 @@ jobs: (contains(github.event.comment.body, '/plan') || contains(github.event.comment.body, '/implement') || contains(github.event.comment.body, '/fix')) - runs-on: ubuntu-latest + runs-on: [self-hosted, eliza] + container: + image: node:20-bookworm + options: --add-host host.docker.internal:host-gateway + env: + HTTP_PROXY: http://host.docker.internal:1080 + HTTPS_PROXY: http://host.docker.internal:1080 + http_proxy: http://host.docker.internal:1080 + https_proxy: http://host.docker.internal:1080 + ALL_PROXY: http://host.docker.internal:1080 + all_proxy: http://host.docker.internal:1080 + NO_PROXY: localhost,127.0.0.1 + no_proxy: localhost,127.0.0.1 timeout-minutes: 30 steps: @@ -40,6 +52,13 @@ jobs: exit 1 fi + - name: Ensure GitHub CLI is Installed + run: | + if ! command -v gh &> /dev/null; then + echo "Installing GitHub CLI..." + curl -fsSL https://github.com/cli/cli/releases/download/v2.67.0/gh_2.67.0_linux_amd64.tar.gz | tar -xz -C /usr/local --strip-components=1 + fi + - name: Acknowledge Command (Add Eyes Reaction) if: success() env: @@ -83,7 +102,7 @@ jobs: - name: Setup Antigravity CLI & Credentials env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.GITOPS_TOKEN || secrets.GITHUB_TOKEN }} AGY_AUTH_TOKEN: ${{ secrets.AGY_AUTH_TOKEN }} run: | # 1. Download official Antigravity CLI binary from google-antigravity/antigravity-cli @@ -118,6 +137,7 @@ jobs: run: | git config --global user.name "Adam Jensen [bot]" git config --global user.email "adam@ermnvldmr.com" + git config --global --add safe.directory "$GITHUB_WORKSPACE" # --- COMMAND: /plan --- - name: Handle /plan (Issue Planning) @@ -136,7 +156,7 @@ jobs: fi PROMPT="You are operating via GitHub Actions on Issue #${ISSUE_NUMBER}.\n\nIssue Context:\n${ISSUE_DATA}\n\nLatest instruction:\n${COMMENT_BODY}\n\nPlease generate/update a detailed technical implementation plan adhering to project GEMINI.md guidelines." - + PLAN_OUTPUT=$(agy $CONTINUE_FLAG --mode plan -p "$PROMPT" || echo "Agent encountered an error generating the plan.") DISCLOSURE="\n\n---\n*Disclosure: I'm an AI assistant helping deytenit; I'm not deytenit.*"