Skip to content

Add a container image and pre-commit hooks (to main) - #13

Merged
devblac merged 1 commit into
mainfrom
feat/pre-commit-docker
Nov 1, 2026
Merged

devblac merged 1 commit into
mainfrom
feat/pre-commit-docker

Conversation

@devblac

@devblac devblac commented Oct 31, 2026

Copy link
Copy Markdown
Owner

#12 was merged into `fix/v0.1.1` after that branch had already been merged into `main`, so its changes never reached `main`. This PR brings the same commit (ee21da5) to `main`. The content is unchanged from #12.

  • `Dockerfile` and `.dockerignore`: a 2.5 MB distroless image with a static binary, running as a non-root user
  • `.github/workflows/image.yml`: builds and tests the image on PRs, and pushes linux/amd64 and linux/arm64 to ghcr when a release is published
  • `.pre-commit-hooks.yaml`: the `docker-lint` (Go) and `docker-lint-docker` (image) hooks
  • `release.yml`: checks that the image hook points at the version being released
  • README, CHANGELOG and CONTRIBUTING updates

🤖 Generated with Claude Code

The image is a static docker-lint on distroless, running as a non-root
user, for linux/amd64 and linux/arm64. Pull requests build and test it;
publishing a release pushes it to ghcr.io, so nothing is public before
the release is. Its own Dockerfile passes docker-lint --strict.

Two pre-commit hooks lint staged Dockerfiles, skipping templates as a
directory search does: docker-lint builds the binary with Go, and
docker-lint-docker runs the image. The release workflow fails if the
image hook names another version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T22:34:23.655236Z ee21da5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@devblac
devblac merged commit 6fa710f into main Nov 1, 2026
6 checks passed
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