Custom Docker image for git-chglog built on Go 1.25 + Alpine Linux 3.22.
230
Custom Docker image for git-chglog built on Go 1.25 + Alpine Linux 3.22.
Generates changelogs based on conventional commits for Git repositories.
git-chglog binaryGenerate 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
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
Content type
Image
Digest
sha256:98a7794a5…
Size
18.1 MB
Last updated
about 1 year ago
docker pull glifed/git-chglog