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
Commit 592d9010 authored by Dorian Turba's avatar Dorian Turba
Browse files

Merge branch 'trunk'

parents e6a3bdc6 fa701ea2
No related branches found
Tags 0.3.4
No related merge requests found
Pipeline #34472 passed
......@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.3.4] - 2024-05-12
* Better documentation
## [0.3.3] - 2024-05-12
### Fixed
......
......@@ -4,20 +4,49 @@
## Objective
Run release_by_changelog on your project.
Publish a new release based on the content of the `CHANGELOG.md` file.
The file must follow the [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
format and each release must adhere
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## How to use it
1. Include the release_by_changelog template in your GitLab CI/CD configuration.
2. If you need to customize the job, refer to
the [jobs customization](https://docs.r2devops.io/get-started/use-templates/#job-templates-customization)
documentation.
### Include the component/template
Add the following to your `.gitlab-ci.yml` file.
As a Template:
```yaml
include:
- project: 'swepy/cicd-templates/release-by-changelog'
ref: '0.3.4'
file: 'templates/release-by-changelog.yml'
```
As a Component:
```yaml
# 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:
```yaml
release-by-changelog:
stage: release
variables:
CHANGELOG_FILEPATH: "docs/CHANGELOG.md"
```
## Variables
| Name | Description | Default |
|----------------------|----------------------------------------|------------------------------------------------|
| `IMAGE_NAME` | The default name for the docker image. | `"registry.gitlab.com/gitlab-org/release-cli"` |
| `IMAGE_TAG` | The default tag for the docker image. | `"latest"` |
| `IMAGE` | The default docker image name. | `"$IMAGE_NAME:$IMAGE_TAG"` |
| `CHANGELOG_FILEPATH` | The path to the CHANGELOG.md file. | `"CHANGELOG.md"` |
You can customize the job by overriding the following variables:
| Name | Description | Default |
|----------------------|------------------------------------|------------------|
| `CHANGELOG_FILEPATH` | The path to the CHANGELOG.md file. | `"CHANGELOG.md"` |
[tool.bumpversion]
allow-dirty = true
commit = true
config-file = "pyproject.toml"
current_version = "0.3.3"
current_version = "0.3.4"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
replace = "{new_version}"
search = "{current_version}"
......@@ -12,7 +11,6 @@ serialize = [
tag = false
[[tool.bumpversion.files]]
allow-dirty = true
filename = "CHANGELOG.md"
replace = """## [Unreleased]
......@@ -20,3 +18,9 @@ replace = """## [Unreleased]
"""
search = """## [Unreleased]
"""
[[tool.bumpversion.files]]
allow-dirty = true
filename = "README.md"
replace = "{new_version}"
search = "{current_version}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment