Repository navigation
fix: compile Squid release images on native AMD64 and ARM64 runners - #11291
Merged
Merged
Conversation
Build AMD64 and ARM64 on matching Ubuntu runners. Publish and sign the combined manifest with the existing release digest contract. Co-authored-by: Copilot App <[email protected]>
Contributor
Documentation PreviewDocumentation has been built for this PR. To view locally:
Built from commit 36c144b |
Contributor
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
A concurrent GHCR writer can retarget the version tag before lookup, causing the release workflow to verify and sign a digest that belongs to neither build.
2 open issues
What changed in this PR
Moves Squid release compilation to native AMD64 and ARM64 runners while preserving a combined image digest for signing and downstream release artifacts.
Changes:
- Splits Squid builds by architecture with isolated caches and digest-artifact handoff.
- Publishes a combined image under the existing version and
latesttags, with digest and platform validation. - Adds release documentation and mocked-Docker regression coverage.
| File | Description |
|---|---|
scripts/ci/release-squid-native-builds.test.ts |
Tests native-build configuration, digest handoff, publication, and failure handling. |
docs/releasing.md |
Documents native compilation and combined-image publication. |
.github/workflows/release.yml |
Separates native architecture builds from manifest publication while retaining signing and digest outputs. |
Review effort: Max (auto)
| --tag "$IMAGE:$VERSION" \ | ||
| --tag "$IMAGE:latest" \ | ||
| "${sources[@]}" | ||
| digest=$(docker buildx imagetools inspect "$IMAGE:$VERSION" --format '{{.Manifest.Digest}}') |
| name: squid-digest-${{ matrix.arch }} | ||
| path: ${{ runner.temp }}/squid-digests/${{ matrix.arch }} | ||
| if-no-files-found: error | ||
| retention-days: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


Summary
ubuntu-24.04(AMD64) andubuntu-24.04-arm(ARM64) runners, eliminating QEMU from Squid release builds and separating architecture cache scopes.latesttags.build-squiddigest output, downstream release dependencies, cosign signing, and SBOM attestation against the combined manifest. Reject missing/invalid digests and verify both platforms before exposing the output.Validation
npm run buildandnpm run type-checkpassed; commit hooks completed successfully.actionlintworkflow validation passed with shellcheck disabled; full actionlint emitted only the same seven pre-existing shellcheck diagnostics as the base workflow.git diff --checkpassed.No live release was dispatched and no container images were published during validation.