Skip to content

Add reusable container image workflow - #1

Merged
spy86 merged 2 commits into
mainfrom
feat/container-image-workflow
Nov 16, 2026
Merged

spy86 merged 2 commits into
mainfrom
feat/container-image-workflow

Conversation

@spy86

@spy86 spy86 commented Nov 16, 2026

Copy link
Copy Markdown
Member

Adds a reusable workflow that lints, tests, scans, signs and publishes container images to GHCR with a Docker Hub mirror.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

The repository adds a reusable container-image workflow for linting, verifying, publishing, and signing images. It also adds workflow documentation, contribution guidance, issue and pull request templates, and repository automation configuration.

Changes: Container Image Workflow

Layer / File(s) Summary
Workflow inputs and usage documentation
.github/workflows/container-image.yml, README.md
The workflow defines image build inputs and optional Docker Hub secrets. The README documents configuration, permissions, tags, verification, and publishing.
Dockerfile lint and image verification
.github/workflows/container-image.yml
The workflow lints the configured Dockerfile, builds images for configured platforms, runs smoke tests, and scans for vulnerabilities.
Image publishing and signing
.github/workflows/container-image.yml
On eligible refs, the workflow publishes built images to GHCR with tags, an SBOM, and provenance. It signs the GHCR digest and can mirror and sign it in Docker Hub.

Repository Contribution and Automation Setup

Layer / File(s) Summary
Contribution and report templates
CONTRIBUTING.md, CODE_OF_CONDUCT.md, .github/ISSUE_TEMPLATE/*, .github/PULL_REQUEST_TEMPLATE.md
Contribution guidance and a Code of Conduct are added. Issue and pull request templates define report fields, labels, title prefixes, and contributor checklists.
Repository defaults and workflow checks
.gitattributes, .github/CODEOWNERS, .github/dependabot.yml, .github/workflows/lint.yml, LICENSE
The repository sets global LF handling and ownership, configures weekly GitHub Actions dependency updates, and adds actionlint checks for pushes and pull requests to main. The license holder name is updated.
Merge Risk: Moderate · up to dbeb3

The new reusable workflow scans one build of the image but publishes and signs a separate rebuild, so the published image may not be the one that was scanned. Non-semver v* tags fail with an unclear error. The PR template's contributing link is broken. Address or explicitly accept the scan/publish gap before merging.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the Dockerfile line,
Then tests each image, platform by platform.
It signs the digest, tags it with care,
And hops to GHCR through the air.
“A tidy workflow!” it says with delight.

@spy86
spy86 merged commit 0756b3e into main Nov 16, 2026
1 check passed
@spy86
spy86 deleted the feat/container-image-workflow branch November 16, 2026 19: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