Skip to content

Epic: Build and release flows (release on tag, agent images, scheduled builds) #609

Open
1 of 2 issues completed

Description

@MushuEE

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

Minimum bar

  • Pushing a vX.Y.Z[-PRERELEASE] tag publishes multi-arch (linux/amd64, linux/arm64) ax-server and ax-task-runner images to ghcr.io/google/ax/<image>, the ax CLI, and deploy/ax-server.yaml pinned 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.

  1. Release on tag: base images, CLI, manifests. .github/workflows/release.yml runs on v* 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).
  2. 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.
  3. Scheduled builds (deferred). Nightly :nightly builds of main for 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

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, a release environment with required reviewers, so only release managers can publish. The workflow already refuses tags that are not on main or a release-* 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 to google/ax.

Sub-issues

Sub-issues

1 of 2 Issues completed
Loading 2 sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions