feat: build and publish OCI image
See original GitHub issueExpected Behavior
I want to be able to include conventional-changelog/commitlint
in my CI, instead of doing custom images or installing commitlint on every run.
Current Behavior
There is no docker image right now.
Affected packages
- cli
- core
- prompt
- config-angular
Possible Solution
Include build script in the CI, that builds multi arch OCI images (e.g. using buildah.io).
Context
I am trying to run CI that verifies if commits are properly formatted. I am using primarily Drone CI and GitLab CI. GitLab CI allows me to do something like this:
commitlint:
image: docker.io/library/node:17-alpine
before_script:
- apk add --no-cache git
- npm install --save-dev @commitlint/config-conventional @commitlint/cli
script:
- npx commitlint --from ${CI_MERGE_REQUEST_TARGET_BRANCH_SHA} --to HEAD --verbose
only:
- main
- merge_requests
However this takes a lot of time, as we need to install git and commitlint every time we want to run CI checks.
Issue Analytics
- State:
- Created 10 months ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to Publish an OCI Image Listing - Oracle Help Center
In this tutorial, you will learn how to publish your image to the OCI Marketplace by ... CREATE AN APPLICATION LISTING TO BUILD...
Read more >support the ability to configure a registry mirror · Issue #37 ...
Thanks for your work on oci-build-task! Is it worth exposing to users the ability to configure a registry mirror with a pull-through cache?...
Read more >Getting Started with Cloud Native Buildpacks - CODE Magazine
Learn to create Cloud Native Buildpacks to create container images without a Dockerfile.
Read more >The Many Ways to Build an OCI Image without Docker
We'll explore these alternative ways to build container images using a ... called img that handles building OCI images without docker .
Read more >Docker - to be continuous - GitLab
The template supports two ways of building your Docker images: ... or there were simply no feat / fix commits), the docker-publish job...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@escapedcat we will need to sort out some logistics. I will be in contact with you soon, I don’t even have Slack installed ATM. It’s on my list to sort this out, will get to it shortly.
I don’t have any weight in the decision in this, but I will comment on the issues we faced before.
This is a very specific use case in the fact it is using
@commitlint/config-conventional
. Short of adding every config known, there is no good way to select what config you want to use. We had this issue when crating the orb, we were asking what config the user wants to use then installing it. Then is it really any different to what you are already doing?I do see value in adding the most popular config into the image but, with a lot of the misconception of this project when I was heavily involved, it is not “conventional commits” it’s commitlint. There were a lot of people using with JIRA and many other commit formats and custom rules.
Ultimately, in the end, we ended up making our own internal docker image for this reason. No one else would want to use our slightly not conventional-commit config, and we don’t want all the conventional-commit configs. I am still actively using some commit lint packages, but find that I want a very opinionated way to commit.
I personally like the idea, just could never make it work for me and everyone.