Skip to content

ci(nix): multi-arch Nix image discovery index (amd64 + arm64) (#636) - #659

Merged
c-vigo merged 2 commits into
feature/625-nix-claude-migrationfrom
feature/636-multi-arch-nix-image
Jun 23, 2026
Merged

c-vigo merged 2 commits into
feature/625-nix-claude-migrationfrom
feature/636-multi-arch-nix-image

Conversation

@c-vigo

@c-vigo c-vigo commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Implements T2.3 (#636): the Nix Image (discovery) workflow now produces a multi-arch index (amd64 + arm64) of the Nix-built devcontainer image, so downstream digest-pinning can resolve against a top-level OCI index.

  • Build packages.devcontainerImage on a native matrix — ubuntu-24.04 (amd64) + ubuntu-24.04-arm (arm64), no QEMU / cross-compilation, so each per-arch image config carries the correct architecture.
  • Push per-arch discovery tags nix-dev-amd64 / nix-dev-arm64, then assemble the index nix-dev with docker buildx imagetools create (mirrors the proven release.yml flow).
  • Verify the index advertises both linux/amd64 and linux/arm64 via imagetools inspect.
  • cachix-action runs with an auth token on every leg, so the arm64 closure lands in the vig-os cache.

Scope guardrails

Dependencies

Acceptance criteria

  • amd64 + arm64 native CI matrix building packages.devcontainerImage
  • per-arch tags pushed
  • multi-arch index assembled with imagetools create
  • index verified (imagetools inspect shows amd64 + arm64)
  • arm64 closure pushed to Cachix

Verification

The multi-arch run executes on push to the epic branch (workflow paths include the flake + this workflow) and via workflow_dispatch. The imagetools inspect step is the AC check (top-level index, not a single-arch manifest).

Refs: #636

c-vigo added 2 commits June 23, 2026 18:20
Build packages.devcontainerImage natively on an amd64 + arm64 runner
matrix (no QEMU/cross-compile), push per-arch nix-dev discovery tags,
and assemble a top-level multi-arch index with imagetools create,
verifying both platforms via imagetools inspect. cachix-action pushes
the arm64 closure to the vig-os cache. Stays continue-on-error and only
touches disposable nix-dev* tags; the versioned/:latest cutover is #639.

Refs: #636
The portable testinfra step fails by design during discovery (FHS gaps),
which skipped the subsequent GHCR push steps, so the per-arch tags never
existed and imagetools create had nothing to assemble. Mark the testinfra
step continue-on-error so the push (and thus the multi-arch index) runs.

Refs: #636
@c-vigo

c-vigo commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

✅ Verified. After fixing the per-arch push being skipped on the discovery-phase testinfra failure (7f8d3cd), the re-dispatched Nix Image (discovery) run is green and the index assembles. Direct inspection of the published index:

```
$ docker buildx imagetools inspect ghcr.io/vig-os/devcontainer:nix-dev
Name: ghcr.io/vig-os/devcontainer:nix-dev
MediaType: application/vnd.docker.distribution.manifest.list.v2+json
Platform: linux/amd64
Platform: linux/arm64
```

Top-level manifest list (not a single-arch manifest) covering both platforms — AC met. The standard ci.yml (image) dispatch is also green.

@c-vigo
c-vigo merged commit a31e55e into feature/625-nix-claude-migration Jun 23, 2026
5 checks passed
@c-vigo
c-vigo deleted the feature/636-multi-arch-nix-image branch June 23, 2026 17:27
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