Repository navigation
Conversation
…ase tags Pushing a vX.Y.Z[-PRERELEASE] tag builds the images from that tag and pushes them to ghcr.io/google/ax/<image>:<tag>: ax-server and ax-task-runner for linux/amd64 and linux/arm64. Agent task images (Dockerfile.claude-code today, Antigravity later) are built on the same tag's ax-task-runner, but only when listed in the AX_RELEASE_AGENT_IMAGES repository variable, since publishing them redistributes the agent CLI. Adding an agent is one AGENT_CATALOG entry. Images that already exist for the tag are not rebuilt unless a manual run sets overwrite. Pull requests touching the Dockerfiles or the workflow do a dry run into a job-local registry. Scheduled builds of main are deferred until the tag flow is validated. Part of #609.
- Treat only a registry 'not found' as a missing image; any other error (auth, rate limit, network) fails the run instead of rebuilding and replacing a published digest. - Key the concurrency group by tag so a tag push and a manual run for the same tag cannot race. - Refuse tags whose Dockerfiles predate multi-arch builds, and check that every platform's image holds that platform's binary. - Document the minimum tag, agent dry runs, and first-publish linking.
Collaborator
Author
|
Closing in favor of #616 (stage 1 of #609). It builds and publishes ax-server and ax-task-runner on release tags along with the CLI, digest-pinned manifests, and the GitHub release, so this workflow would build the same images twice per tag. The existence-check hardening and tag-keyed concurrency from here are carried over. Agent images are out of scope for #609: they are built and released in https://github.com/agentexecutor/images. |
11 of 12 tasks
Lukeluds
added a commit
to Lukeluds/ax-images
that referenced
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #609 (stage 1 images, stage 2 agent images). Validation is tracked in #610.
What
Adds
.github/workflows/release-images.yml. When avX.Y.Z[-PRERELEASE]tag is pushed, it builds the AX images from that tag and pushes them toghcr.io/google/ax/<image>:<tag>:ax-serverax-task-runnerclaude-code(Dockerfile.claude-code)AX_RELEASE_AGENT_IMAGESAX_RELEASE_AGENT_IMAGESnames it. The variable is unset by default, so Claude Code stays off. Each agent image is built on theax-task-runnerof the same tag. Adding Antigravity later means adding a runner, a Dockerfile, a.dockerignoreentry, and oneAGENT_CATALOGentry (docs/release-images.md).overwriterebuilds it.:latestis never moved.Dockerfile.*, or.dockerignore, and manual runs withdry_run, build everything into a registry that exists only inside the job and publish nothing. Onlygoogle/axpublishes. Forks can only do dry runs.mainare deferred until the tag flow has been validated (Validate the build and release workflow runs #610).Auth is the job's
GITHUB_TOKENwithpackages: write, so no GCP setup is needed. Action pins, BuildKit, and the registry image are the same ones the repo already uses.Testing
jqlogic locally: empty →[], whitespace is trimmed, and an unknown name fails with the list of known names. I checked the tag regex against valid and invalid tags.gh workflow run release-images.yml -f tag=<existing tag> -f agent_images=claude-code -f dry_run=true.After merge
vX.Y.Z-rc.1). GHCR creates new org packages as private, so an org owner needs to makeax-serverandax-task-runnerpublic and link them togoogle/ax.