Repository navigation
Description
Objective
Make every AX release reproducible and installable without building anything: pushing a vX.Y.Z tag builds and publishes the images, CLI binaries, and digest-pinned install manifests, with no manual steps. Once the tag flow has been validated, extend it to scheduled builds of main.
Agent task images (Claude Code, Antigravity, …) are out of scope. Their builds and releases are managed in agentexecutor/images.
Current state
- Releases are cut by hand. The latest is v0.3.1, and it ships no images.
ax-serverandax-task-runnerimages are not published with releases (Release hygiene: publish images with each release and state which Substrate release AX works with #487). The default task imagegcr.io/ax-substrate/ate-images/ax-task-runnerreturns 403 to anonymous pulls (The default task-runner image is not public #424).- Images are built locally with
make images. Nothing in CI builds them, and the Makefile builds one architecture per run (Makefile/ko build targets hardcode linux/amd64, breaking arm64 clusters #358). .github/workflows/hasgo.yml,e2e.yml,check-binaries.yml, andrulesets.yml. None of them builds or publishes images.
Minimum bar
- Pushing a
vX.Y.Z[-PRERELEASE]tag publishes multi-arch (linux/amd64, linux/arm64)ax-serverandax-task-runnerimages toghcr.io/google/ax/<image>, theaxCLI, anddeploy/ax-server.yamlpinned by digest, as a GitHub release - Pull requests that touch the build run the same workflow as a dry run that publishes nothing
- Rerunning a release never changes the digests of a published release
- The published images can be pulled anonymously, and a cluster can be installed from the release assets alone
- Each stage is validated on real runs before the next one is turned on (Validate the build and release workflow runs #610)
Stages
Triggers start on tag only. Scheduled (nightly) builds are deferred until the tag flow has been validated.
- Release on tag: base images, CLI, manifests.
.github/workflows/release.ymlruns onv*tags, on PRs (as a dry run), and on manual dispatch. PR ci: build and publish a release when a vX.Y.Z tag is pushed #616. Covers Release hygiene: publish images with each release and state which Substrate release AX works with #487 (images), The default task-runner image is not public #424, and Makefile/ko build targets hardcode linux/amd64, breaking arm64 clusters #358 (arm64).- CLI assets are
ax_<os>_<arch>.tar.gz,checksums.txt, andinstall.sh, matching the installer from feat(cli): add ax local, ax install/uninstall, and one-line installer #603. :latestmoves only for the highest stable release, never for a prerelease.
- CLI assets are
- Validation of the runs. Dry runs, a prerelease tag, a real release, and installing from the published assets. Tracked in Validate the build and release workflow runs #610.
- Scheduled builds (deferred). Nightly
:nightlybuilds ofmainfor the base images. To be revisited after stage 2.
Follow-up when the runner volume work is ready (#619, #620, #621, #622; tracked under #493): #625 adds ax-runner-volume to the release images and decides whether release manifests set AX_RUNNER_VOLUME_IMAGE. Until then, the release manifest leaves it empty.
Follow-up after the first published release: set the axdeploy default images (TODO(release) from #603) to the published ghcr.io/google/ax images.
Related issues
- Release hygiene: publish images with each release and state which Substrate release AX works with #487 Release hygiene: publish images with each release (also the AX ↔ Substrate compatibility table, which is out of scope here)
- The default task-runner image is not public #424 The default task-runner image is not public
- Makefile/ko build targets hardcode linux/amd64, breaking arm64 clusters #358 Makefile/ko build targets hardcode linux/amd64
- Prebuilt images #493 Prebuilt images (Antigravity, Claude Code, …), now built in agentexecutor/images
- Release the runner volume image (ax-runner-volume) #625 Release the runner volume image (sub-issue, blocked on the runner volume work)
- Epic: Establish rulesets for branching, tagging, and merging #546 Rulesets epic:
v*tags restricted to release managers and the release workflow
Rollout
- The workflow lands with publishing gated (dry run on PRs,
if: github.repository == 'google/ax'). - Before the first publish: a
v*tag ruleset (Epic: Establish rulesets for branching, tagging, and merging #546) and, ideally, areleaseenvironment with required reviewers, so only release managers can publish. The workflow already refuses tags that are not onmainor arelease-*branch. - The first publish uses a prerelease tag (
vX.Y.Z-rc.N). New GHCR packages are created private, so an org owner makes them public and links them togoogle/ax.
Activity
ci: build and publish a release when a vX.Y.Z tag is pushed (#616)