Sign inSign up

glifed/git-chglog

By glifed

•Updated about 1 year ago

Custom Docker image for git-chglog built on Go 1.25 + Alpine Linux 3.22.

Image
Integration & delivery
2

230

glifed/git-chglog repository overview

⁠git-chglog Docker Image

Custom Docker image for git-chglog⁠ built on Go 1.25 + Alpine Linux 3.22.
Generates changelogs based on conventional commits for Git repositories.


⁠Features

  • Precompiled git-chglog binary
  • Lightweight Alpine Linux 3.22 base
  • Git and Bash included
  • Ready for CI/CD pipelines
  • No need to install Go or dependencies

⁠Usage

Generate a changelog for your Git repository:

docker run --rm -v $(pwd):/workdir -w /workdir glifed/git-chglog \
    git-chglog -o CHANGELOG.md --config .chglog/config.yml

##Example in GitLab CI

generate_changelog:
  stage: release
  image: glifed/git-chglog:latest
  before_script:
    - git fetch --tags
  script:
    - git-chglog -o CHANGELOG.md --config .chglog/config.yml "$CI_COMMIT_TAG"
  artifacts:
    paths:
      - CHANGELOG.md

create_release:
  stage: release
  image: registry.gitlab.com/gitlab-org/release-cli:latest
  script:
    - echo "Creating release for tag $CI_COMMIT_TAG"
  release:
    name: "Release $CI_COMMIT_TAG"
    description: "$(cat CHANGELOG.md)"
    tag_name: $CI_COMMIT_TAG
    ref: $CI_COMMIT_SHA
  needs:
    - job: generate_changelog
      artifacts: true

⁠Other commands https://github.com/git-chglog/git-chglog?tab=readme-ov-file⁠

Dockerfile:

FROM golang:1.25.0-alpine3.22 AS builder
RUN apk add --no-cache git ca-certificates bash
WORKDIR /build
RUN git clone https://github.com/git-chglog/git-chglog.git /build/git-chglog \
    && cd /build/git-chglog \
    && go build -o /git-chglog ./cmd/git-chglog


FROM alpine:3.22
RUN apk add --no-cache git ca-certificates bash
COPY --from=builder /git-chglog /usr/local/bin/git-chglog

Tag summary

Content type

Image

Digest

sha256:98a7794a5…

Size

18.1 MB

Last updated

about 1 year ago

docker pull glifed/git-chglog