Skip to content

ci: publish multi-arch images to ghcr.io on release tags - #11

Merged
Lukeluds merged 5 commits into
agentexecutor:mainfrom
Lukeluds:feat/release-workflow
Nov 19, 2026
Merged

Lukeluds merged 5 commits into
agentexecutor:mainfrom
Lukeluds:feat/release-workflow

Conversation

@Lukeluds

@Lukeluds Lukeluds commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #12, #13.

Summary

Adds .github/workflows/release.yaml to build and publish multi-arch (linux/amd64, linux/arm64) images to ghcr.io/agentexecutor/<image>:<tag> on vX.Y.Z[-PRERELEASE] release tags, modeled on google/ax#611.

Highlights

  • Triggers: push on v* semver tags (strictly validated in plan), workflow_dispatch (with tag, optional images filter, overwrite, dry_run), and pull_request touching the workflow or Dockerfiles (runs as a dry run against an ephemeral localhost:5000 registry).
  • Idempotent & safe: Skips images that already exist for the tag unless overwrite=true, fails on transient registry errors so published digests are never accidentally replaced, never moves :latest, and only publishes from agentexecutor/images.
  • First publish: ghcr.io answers DENIED for 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.
  • Catalog: antigravity and mock-gemini-api (the fake Gemini API server from fakes/mock-gemini, named so it isn't mistaken for an agent image). Entries can set build_args. antigravity is built with PREINSTALL_AGY=false, so a published image never bundles the agy binary until the licensing question in Get the Antigravity image ready to publish #15 is answered, whatever the Dockerfile's default is. claude-code and its test server mock-anthropic are excluded (paused; Epic: Publish agent images to GHCR on release tags #12) and rejected if requested via inputs.images.
  • Supply-chain hardening: Actions and BuildKit are pinned by SHA/digest, manifest indexes are verified to contain both linux/amd64 and linux/arm64, and pinned @sha256:... digests are printed in the step summary.
  • Visibility: New ghcr.io packages 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: antigravity is skipped until agents/antigravity/Dockerfile exists on the tagged commit, now that #9 is merged, this PR's dry run builds antigravity (amd64 + arm64) and mock-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 the release environment (#14).

@mayawang

Copy link
Copy Markdown
Collaborator

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?

@MushuEE

MushuEE commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Tracking: this is the release workflow for #12 (epic: publish agent images to GHCR on release tags). The remaining changes for it are listed in #13, including leaving claude-code out of the image catalog. Could the description reference #12?

@mayawang

mayawang commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

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.

@Lukeluds

Copy link
Copy Markdown
Collaborator Author

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.

@MushuEE MushuEE mentioned this pull request Nov 18, 2026
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.
@Lukeluds
Lukeluds force-pushed the feat/release-workflow branch from 47fa773 to f43ac5e Compare November 18, 2026 23:47

@MushuEE MushuEE left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@Lukeluds

Copy link
Copy Markdown
Collaborator Author

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 mock-gemini-api (source still fakes/mock-gemini), so the package name says it's a fake API server, not an agent image.

@MushuEE MushuEE left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Lukeluds
Lukeluds merged commit f1611b0 into agentexecutor:main Nov 19, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants