- research: searches SearXNG, reads the best pages through the reader, has the model list the server's variants, then checks every Docker image and Steam app it named for real before an admin sees it. - build: first boot of the variant's images (skipping ones that need root), a draft by the model, then the draft deployed with the node-agent's BootTest like CI does; crashes, error lines and saves outside /server go back to the model, three boots at most. - worker: polls the panel's builder queue (outbound only), runs research or build in a fresh clone, streams the output as the job log, and opens the result as a pull request from the bot account. - Dockerfile.builder, a workflow publishing gbr-builder:latest, and BUILDER.md. Everything about where it runs comes from environment variables; deployment files live outside this public repo. draft now keeps its conversation in a drafter, so build can send boot failures back to the same model session. The boot-test runner comment no longer names its VM. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
name: Builder image
|
|
|
|
# Publishes the AI builder worker image (gbrgames worker, see BUILDER.md).
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
paths:
|
|
- "cmd/**"
|
|
- "go.mod"
|
|
- "go.sum"
|
|
- "Dockerfile.builder"
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
REGISTRY: www.gitea.gbreed.com
|
|
IMAGE_NAME: gbr-builder
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Login to Gitea Container Registry
|
|
run: |
|
|
echo "${{ secrets.GIT_SERVER_TOKEN }}" | docker login ${{ env.REGISTRY }} \
|
|
-u ${{ secrets.GIT_TOKEN_USERNAME }} \
|
|
--password-stdin
|
|
|
|
- name: Build and Push Docker Image
|
|
run: |
|
|
IMAGE_PATH="${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}"
|
|
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7)
|
|
docker build -f Dockerfile.builder -t $IMAGE_PATH:$SHORT_SHA -t $IMAGE_PATH:latest .
|
|
docker push $IMAGE_PATH:$SHORT_SHA
|
|
docker push $IMAGE_PATH:latest
|