Drone plugin to bump version based on changelog following keepachangelog format.
1.9K
Drone plugin to bump version based on changelog following keepachangelog format.
The following steps are executed by this plugin:
Unreleased changelog section.Unreleased changelog section within a new section for this new version.__version__ value in version file.| Parameter | Description |
|---|---|
| changelog_path | Path to the changelog. Default to CHANGELOG.md in current folder. |
| version_file_path | Path to the python file containing the version. If not provided, no file will be updated. |
| skip_commit_author | If provided and the value matches the one from the commit author user name, this plugin will not do anything. |
| github_token | Token (repo permission) used to commit (and update repository permissions temporarily if needed). Default to the drone GIT password (if available). Related user needs to have admin role in repository. |
| user_name | Name of the GIT commit user. Default to the drone GIT user name. |
| user_email | email of the GIT commit user. Default to the drone GIT user email. |
| dry_run | If set, there will be no effective version bump. Default to dry-run if this is a pull request. |
| mandatory_changelog_entry | Step will fail if this is set and there is no changes in Unreleased section within changelog. Do nothing by default. |
kind: pipeline
type: docker
name: default
steps:
- name: bump_version
image: etsinfra/drone-bump-version:latest
settings:
changelog_path: custom_folder/CHANGELOG.md
version_file_path: custom_folder/__init__.py
github_token: cc1cc11111111ccc1c11c1cc1ccc1c1cc1111c1c
user_name: user
user_email: [email protected]
Content type
Image
Digest
sha256:a70856ca9…
Size
340.9 MB
Last updated
about 3 years ago
docker pull etsinfra/drone-bump-version