spawn/.github/workflows/fly-docker.yml
A 0f4df7be71
feat: pre-built Docker image for OpenClaw on Fly.io (#1686)
Eliminates the slow waitForCloudInit() + bun install phase by booting
a pre-built image with Node.js, bun, and openclaw already installed.
The image is rebuilt daily via GitHub Actions to pick up new releases.

Other agents are unaffected — they still use ubuntu:24.04 + cloud-init.

Co-authored-by: spawn-bot <spawn-bot@openrouter.ai>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 02:50:46 -05:00

34 lines
737 B
YAML

name: Build Fly Docker Images
on:
push:
branches: [main]
paths:
- "fly/docker/openclaw.Dockerfile"
schedule:
# Daily: pick up new openclaw releases
- cron: "0 6 * * *"
workflow_dispatch:
permissions:
packages: write
contents: read
jobs:
build-openclaw:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
context: .
file: fly/docker/openclaw.Dockerfile
push: true
tags: ghcr.io/openrouterteam/spawn-openclaw:latest