Repository navigation
Add CI: PR checks and versioned publish to GHCR - #1
Merged
Merged
Conversation
- pr.yml: hadolint, shellcheck, actionlint, then native amd64 + arm64 build and smoke test on every PR (nothing pushed) - publish.yml: multi-arch build pushed to ghcr.io; semver tags from git tags (X.Y.Z, X.Y, X, latest), edge + sha-<short> on main - scripts/smoke-test.sh: verifies all advertised tools exist and the pinned binaries execute - Dockerfile: set pipefail so a failed curl in `curl | tar` fails the build Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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
pr.ymlruns on PRs tomain: hadolint, shellcheck and actionlint, then builds the image on native amd64 and arm64 runners and runs a smoke test. Nothing is pushed.publish.ymlruns on pushes tomainand onv*.*.*tags. It buildslinux/amd64,linux/arm64, pushes toghcr.io/ngpayyappilly/k8s-debug, and attaches provenance and SBOM.v1.2.3gives1.2.3,1.2,1andlatest.v1.3.0-rc.1give only that tag.maingivesedgeandsha-<short>.scripts/smoke-test.shchecks that every advertised tool exists, that the pinned binaries run, and that the bashrc loads. It can also be run locally.pipefail, so a failedcurlin acurl | tarstep fails the build instead of silently producing a broken image (hadolint DL4006).Test plan
.hadolint.yamledgeimage appears at ghcr.io. Then pushv0.1.0and check the tags.Notes
publish.ymlonly runs after merge, so it can't be exercised by this PR. The first run onmainis the real test.ubuntu-24.04-armrunners (public repos).🤖 Generated with Claude Code