Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects

Release By Changelog template

License: MIT

Objective

Publish a new release based on the content of the CHANGELOG.md file. The file must follow the Keep a Changelog format and each release must adhere to Semantic Versioning.

How to use it

Include the component/template

Add the following to your .gitlab-ci.yml file.

As a Template:

include:
    -   project: 'swepy/cicd-templates/release-by-changelog'
        ref: '0.3.4'
        file: 'templates/release-by-changelog.yml'

As a Component:

# As a Component
include:
    -   component: $CI_SERVER_FQDN/swepy/cicd-templates/release-by-changelog/release-by-changelog@0.3.4

Customize job

You can customize the job by overriding specific keys. For example:

release-by-changelog:
    stage: release
    variables:
        CHANGELOG_FILEPATH: "docs/CHANGELOG.md"

Variables

You can customize the job by overriding the following variables:

Name Description Default
CHANGELOG_FILEPATH The path to the CHANGELOG.md file. "CHANGELOG.md"