-
-
Notifications
You must be signed in to change notification settings - Fork 317
feat(docker): add Docker image publishing to GHCR #1820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(docker): add Docker image publishing to GHCR #1820
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1820 +/- ##
=======================================
Coverage 97.96% 97.96%
=======================================
Files 60 60
Lines 2648 2648
=======================================
Hits 2594 2594
Misses 54 54 ☔ View full report in Codecov by Sentry. |
5f725ca to
7bbe85f
Compare
This implementation adds automated Docker image publishing to GitHub Container Registry (ghcr.io) on every release tag. - [x] I have read the [contributing guidelines](https://commitizen-tools.github.io/commitizen/contributing/) - [ ] Add test cases to all the changes you introduce - [ ] Run `uv run poe all` locally to ensure this change passes linter check and tests - [x] Manually test the changes: - [x] Verify the feature/bug fix works as expected in real-world scenarios - [ ] Test edge cases and error conditions - [ ] Ensure backward compatibility is maintained - [x] Document any manual testing steps performed - [x] Update the documentation for the changes - [x] Run `uv run poe doc` locally to ensure the documentation pages renders correctly - [x] Check and fix any broken links (internal or external) in the documentation > When running `uv run poe doc`, any broken internal documentation links will be reported in the console output like this: > > ```text > INFO - Doc file 'config.md' contains a link 'commands/bump.md#-post_bump_hooks', but the doc 'commands/bump.md' does not contain an anchor '#-post_bump_hooks'. > ``` <!-- A clear and concise description of what you expected to happen --> The Docker image will be published at: ghcr.io/commitizen-tools/commitizen <!-- Steps to reproduce the behavior: 1. ... 2. ... 3. ... --> <!-- Add any other RELATED ISSUE, context or screenshots about the pull request here. --> Key features: - Multi-stage Dockerfile using Python 3.13 slim and UV - GitHub Actions workflow for automated publishing on v* tags - Multi-architecture support (amd64, arm64) - Multiple image tags (latest, version, major.minor, major, sha) - Build attestation for supply chain security - Documentation: new Docker tutorial and updates to existing CI guides
7bbe85f to
544c521
Compare
|
Hi there, thanks for the intention, but we already have a docker repository, would you mind sending a PR there? 🙏🏻 |
|
Hi @woile ! Thanks for your response.
|

This implementation adds automated Docker image publishing to GitHub Container Registry (ghcr.io) on every release tag.
-
-
-
-
- Verify the feature/bug fix works as expected in real-world scenarios
- Test edge cases and error conditions
- Ensure backward compatibility is maintained
- Document any manual testing steps performed
-
-
-
The Docker image will be published at: ghcr.io/commitizen-tools/commitizenI have read the contributing guidelines
Add test cases to all the changes you introduce
Run
uv run poe alllocally to ensure this change passes linter check and testsManually test the changes:
Update the documentation for the changes
Run
uv run poe doclocally to ensure the documentation pages renders correctlyCheck and fix any broken links (internal or external) in the documentation
Key features: