Repository navigation
ci: publish multi-arch images to ghcr.io on release tags - #11
Conversation
|
Nice, this mirrors google/ax's release flow well. Two things: (1) I've added a tag ruleset on this repo (admins-only tags, vX.Y.Z names), so tags can only be cut by admins now; (2) since the catalog picks up antigravity as soon as its Dockerfile lands, could we leave antigravity out of the catalog until the runner/licensing question settles, so a tag can't publish agy by accident? |
|
Leaving claude-code out makes sense since Antigravity is the Dec image. The only thing I'd hold is publishing an image with the agy binary bundled, until the runner approach Jaana and Aprajita are working on settles. |
|
Status: ready for review. Since the last pass:
Before merging: once #9 lands I'll update this branch with main so the dry run builds antigravity on amd64 and arm64 for the first time. Then this can merge and the rc can be tagged. |
Add .github/workflows/release.yaml modeled on google/ax#611: - Triggered on vMAJOR.MINOR.PATCH[-PRERELEASE] tags, workflow_dispatch, and pull requests touching the workflow or Dockerfiles (dry run). - Builds linux/amd64 and linux/arm64 images via pinned BuildKit and pushes them to ghcr.io/agentexecutor/<image>:<tag> (or an ephemeral local registry during dry runs). - Skips images that already exist for the tag unless overwrite=true, failing on transient registry errors so published digests are never replaced accidentally. Never moves :latest. - Prints pinned @sha256:... digests in the job summary.
- Catalog entries can set build_args, passed as --build-arg. antigravity is back in the catalog with PREINSTALL_AGY=false, so a published image never bundles the agy binary until the licensing question in agentexecutor#15 is answered, whatever the Dockerfile's default is. - ghcr.io answers DENIED for a package that was never pushed. As in google/ax, a denied ghcr.io reference is resolved through the packages API, so the first publish of each image is not treated as an error. Part of agentexecutor#13.
47fa773 to
f43ac5e
Compare
MushuEE
left a comment
There was a problem hiding this comment.
Thanks for rebasing. The dry run on f43ac5e looks good: all three images built, antigravity on both amd64 and arm64 with PREINSTALL_AGY=false, and nothing went to ghcr.io.
One change before this merges: please drop mock-anthropic from the release catalog. We don't need to publish it for now; antigravity and mock-gemini are enough.
That's this line in IMAGE_CATALOG (.github/workflows/release.yaml):
{"name": "mock-anthropic", "context": "fakes/mock-anthropic"},
With it gone, asking for mock-anthropic through the images input is rejected as unknown, the same way claude-code is. The Fake Anthropic server job in ci.yaml should stay as it is; this is only about publishing.
Could you also update the catalog comment and the PR description to match?
…as mock-gemini-api mock-anthropic only tests the paused claude-code image (agentexecutor#12), so it is not published; its code stays in the repo. The Gemini fake is published as mock-gemini-api so the name says it is a fake API server, not an agent image. Names are set before the first publish, since they are hard to change afterwards.
|
Done in 83b0215: mock-anthropic is out of the catalog (requesting it is rejected as unknown, like claude-code), the Fake Anthropic server job in ci.yaml is unchanged, and the catalog comment and PR description are updated. One extra change in the same commit: the Gemini fake is published as |
MushuEE
left a comment
There was a problem hiding this comment.
Thanks, mock-anthropic is out and the mock-gemini-api name is fine. Dry run on 83b0215 builds antigravity (PREINSTALL_AGY=false) and mock-gemini-api for amd64 and arm64 and publishes nothing. Two small things in the description, not blocking: the Merge order sentence is garbled, and the follow-ups still list the release environment, which #14 dropped.
Part of #12, #13.
Summary
Adds
.github/workflows/release.yamlto build and publish multi-arch (linux/amd64,linux/arm64) images toghcr.io/agentexecutor/<image>:<tag>onvX.Y.Z[-PRERELEASE]release tags, modeled on google/ax#611.Highlights
pushonv*semver tags (strictly validated inplan),workflow_dispatch(withtag, optionalimagesfilter,overwrite,dry_run), andpull_requesttouching the workflow or Dockerfiles (runs as a dry run against an ephemerallocalhost:5000registry).overwrite=true, fails on transient registry errors so published digests are never accidentally replaced, never moves:latest, and only publishes fromagentexecutor/images.DENIEDfor a package that was never pushed. As in google/ax (hack/release/publish-images.sh), a denied ghcr.io reference is resolved through the packages API: a 404 means not published yet; anything else fails the run.antigravityandmock-gemini-api(the fake Gemini API server fromfakes/mock-gemini, named so it isn't mistaken for an agent image). Entries can setbuild_args.antigravityis built withPREINSTALL_AGY=false, so a published image never bundles theagybinary until the licensing question in Get the Antigravity image ready to publish #15 is answered, whatever the Dockerfile's default is.claude-codeand its test servermock-anthropicare excluded (paused; Epic: Publish agent images to GHCR on release tags #12) and rejected if requested viainputs.images.linux/amd64andlinux/arm64, and pinned@sha256:...digests are printed in the step summary.ghcr.iopackages start private; an org owner switches each one to public and links it to this repo after the first publish.Merge order
Safe to merge before #9:
antigravityis skipped untilagents/antigravity/Dockerfileexists on the tagged commit, now that #9 is merged, this PR's dry run buildsantigravity(amd64 + arm64) andmock-gemini-api.Follow-ups (rest of #13)
Refusing tags that are not on
main, creating a draft GitHub release with the digests, native arm64 runners instead of QEMU, and thereleaseenvironment (#14).