Skip to content

feat: single-binary harness replaces launcher, agent.yaml primary config #50

feat: single-binary harness replaces launcher, agent.yaml primary config

feat: single-binary harness replaces launcher, agent.yaml primary config #50

Workflow file for this run

name: Images
on:
push:
branches: [main]
paths:
- 'sandbox/**'
- 'build/**'
- 'agents/**'
- 'providers.toml'
- '*.go'
- 'go.*'
- 'cmd/**'
- 'internal/**'
tags: ["v*"]
pull_request:
paths:
- 'sandbox/**'
- 'build/**'
- 'agents/**'
- 'providers.toml'
- '*.go'
- 'go.*'
- 'cmd/**'
- 'internal/**'
permissions:
contents: read
packages: write
env:
REGISTRY: ghcr.io
IMAGE_BASE: ghcr.io/${{ github.repository }}
jobs:
sandbox:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v5
id: meta
with:
images: ${{ env.IMAGE_BASE }}
tags: |
type=raw,value=sandbox,enable={{is_default_branch}}
type=semver,pattern=sandbox-v{{version}}
type=ref,event=pr,prefix=sandbox-pr-
- uses: docker/build-push-action@v6
with:
context: sandbox
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: |
type=registry,ref=${{ env.IMAGE_BASE }}:sandbox-cache
type=registry,ref=${{ env.IMAGE_BASE }}:sandbox
cache-to: type=registry,ref=${{ env.IMAGE_BASE }}:sandbox-cache,mode=max
runner:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build harness binary
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o build/runner/harness .
- name: Install openshell CLI
run: |
curl -LsSf https://raw.githubusercontent.com/NVIDIA/OpenShell/main/install.sh | sh
cp "$(which openshell)" build/runner/openshell
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v5
id: meta
with:
images: ${{ env.IMAGE_BASE }}
tags: |
type=raw,value=runner,enable={{is_default_branch}}
type=semver,pattern=runner-v{{version}}
type=ref,event=pr,prefix=runner-pr-
- uses: docker/build-push-action@v6
with:
context: build/runner
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: |
type=registry,ref=${{ env.IMAGE_BASE }}:runner-cache
type=registry,ref=${{ env.IMAGE_BASE }}:runner
cache-to: type=registry,ref=${{ env.IMAGE_BASE }}:runner-cache,mode=max