feat: implement new agent image release strategy #304
Merged
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.
Implements a new release strategy for agent container images that aligns with CLI versioning and automates the image build process during releases.
Closes: #241
Overview
This PR introduces a complete overhaul of how agent images are versioned, built, and distributed. The key improvement is automatic synchronization between the CLI version and the agent image version, ensuring consistency across the Rover ecosystem.
Key Changes
1. Image Renaming & Restructuring
ghcr.io/endorhq/rover/nodetoghcr.io/endorhq/rover/agentfor clarityimages/node/toimages/agent/directory2. Dynamic Image Resolution
getDefaultAgentImage()function that dynamically resolves the correct image based on CLI version-devsuffix): Always usesghcr.io/endorhq/rover/agent-dev:latestlatesttag (never version tags)ghcr.io/endorhq/rover/agent:v{version}v1.5.2)ROVER_AGENT_IMAGEenvironment variable for custom imagesAGENT_IMAGEconstant in favor of dynamic resolution3. Workflow Enhancements
Build Image Workflow (
build-image.yml)workflow_calltrigger for reusability in other workflowsimage-nameinput parameter (defaults toghcr.io/endorhq/rover/agent)agent) and development (agent-dev) imagesCLI Workflow (
cli.yml)agent-dev:latestafter successful CLI buildslatesttag toagent-dev, never version tagsRelease Workflow (
release.yml)release/{project}/v{major.minor}patternv1.5.2)agentimage, never toagent-dev4. Release Branch Management
release/cli/v{major.minor}1.5.2→ branchrelease/cli/v1.55. Version Management
0.0.0-devfor development mode0.0.0-devon main branch6. Documentation Updates
docs/agent-images.mdto reference newimages/agent/pathdocs/ai-agents.mdwith correct image build instructionsImage Tagging Strategy
Development Image (
agent-dev)ghcr.io/endorhq/rover/agent-devlatest(never version tags)-dev(e.g.,0.0.0-dev)Production Image (
agent)ghcr.io/endorhq/rover/agentv1.5.2)1.5.2)Release Flow
The new automated release process works as follows:
v1.5.2)release/cli/v1.5)Benefits
agent-dev:latestTesting
latest)