Skip to content

feat: build and publish OCI image #3423

Closed
@shanduur

Description

@shanduur

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions