question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feat: build and publish OCI image

See original GitHub issue

Expected 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:open
  • Created 10 months ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
AdeAttwoodcommented, Dec 13, 2022

@Shanduur @AdeAttwood any feedback to the current PR?: #3431 It’s not my really my topic tbh

@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.

2reactions
AdeAttwoodcommented, Nov 18, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found