Skip to content

chore(release): migrate to dockers_v2 - #136

Merged
pavelanni merged 1 commit into
mainfrom
chore/goreleaser-dockers-v2
Nov 16, 2026
Merged

pavelanni merged 1 commit into
mainfrom
chore/goreleaser-dockers-v2

Conversation

@pavelanni

Copy link
Copy Markdown
Collaborator

Summary

  • Replace the four per-arch dockers entries and the three docker_manifests entries with two multi-arch dockers_v2 entries: one manifest for the main image, one for -openshell.
  • GoReleaser now stages artifacts at $TARGETPLATFORM/, so Dockerfile.release and Containerfile.openshell copy from $TARGETPLATFORM/docsclaw, and make image-openshell stages the binary under linux/<arch>/.
  • latest stays gated to stable tags via a conditional tag ({{ if not .Prerelease }}), matching the previous skip_push: auto.
  • brews is left as-is; the Formula → Cask migration is a separate follow-up (it needs a tap migration and end-to-end install verification).

Part of #100 — the docker half. The brews deprecation remains.

Verification

  • goreleaser check — valid; only the expected brews deprecation remains.
  • goreleaser release --snapshot --clean --skip=homebrew — built all four images (main/openshell × amd64/arm64); openshell amd64 reports uname -m = x86_64, both run docsclaw --version with the injected version.
  • make image-openshell — still works (podman sets TARGETPLATFORM for --platform); image builds and runs.

🤖 Generated with Claude Code

Replace the per-arch `dockers` entries and `docker_manifests` with two
multi-arch `dockers_v2` entries (main and openshell). Artifacts are staged
at `$TARGETPLATFORM/`, so both Dockerfiles copy from that path and
`make image-openshell` stages the binary under `linux/<arch>`.

`latest` remains a conditional tag (stable tags only). `brews` is left for
the follow-up cask migration.

Part of #100.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Pavel Anni <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • New Features
    • Container images are now available for both AMD64 and ARM64 platforms.
    • Standard images use version tags, with latest reserved for non-prerelease releases. OpenShell images use version tags marked with -openshell.

The release build now uses platform-specific binary paths in its Dockerfiles. GoReleaser defines standard and OpenShell Docker images for both Linux architectures, with version-based tags and a conditional latest tag for the standard image.

Changes: Container release flow

Layer / File(s) Summary
Platform-specific binary paths
Makefile, Containerfile.openshell, Dockerfile.release
The image-openshell target writes the binary under an architecture-specific path. Both Dockerfiles select the binary from the path matching TARGETPLATFORM.
GoReleaser image definitions
.goreleaser.yaml
The build entry has the docsclaw ID. GoReleaser defines standard and OpenShell images for linux/amd64 and linux/arm64. The standard image adds latest only for non-prereleases. Both image definitions disable SBOM generation.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Other

Merge Risk: Minimal · up to f011f

This change moves the Docker release configuration to multi-architecture dockers_v2 builds. No concrete defect was found; prerelease versions should publish only their version tag. The change is ready to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "chore(release): migrate to dockers_v2" matches the main change. The PR replaces per-arch dockers entries and docker_manifests with two multi-arch dockers_v2 entries, and the changes to Dock…
Description check Passed The description matches the changeset. It explains the dockers_v2 consolidation, the TARGETPLATFORM path change in Dockerfile.release and Containerfile.openshell, the make image-openshell staging chan…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "chore(release): migrate to dockers_v2" matches the main change. The PR replaces per-arch dockers entries and docker_manifests with two multi-arch dockers_v2 entries, and the changes to Dockerfile.release, Containerfile.openshell and the Makefile support that migration. The title is concise and specific.

Full details: Description check

Explanation

The description matches the changeset. It explains the dockers_v2 consolidation, the TARGETPLATFORM path change in Dockerfile.release and Containerfile.openshell, the make image-openshell staging change, the latest tag gating, and the deferred brews work. It also lists verification steps.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: a1b3ead2-03b4-4d37-9241-87c621720af7
Commits

Reviewing files that changed from the base of the PR and between c74ac14 and f011f5f.

Files selected for processing: 4

  • .goreleaser.yaml
  • Containerfile.openshell
  • Dockerfile.release
  • Makefile

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 8 remain after this review.

@pavelanni
pavelanni merged commit f0e4811 into main Nov 16, 2026
5 checks passed
@pavelanni
pavelanni deleted the chore/goreleaser-dockers-v2 branch November 16, 2026 22:58
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.

1 participant