Bump My Version CICD Component
Objective
Trigger a version bump through CICD.
How to use it
Bump My Version requires a Deploy Key. Without, jobs won't be activated.
- Create a new SSH key:
ssh-keygen -t ed25519 -C "bump-my-version deploy key" -f bump-my-version
- Create a new Deploy Key:
- Go to
Settings > Repository > Deploy Keys > Add new > Key
- Set
Title
toBump-My-Version
- Set
Key
with the content of the filebump-my-version.pub
- Check
Grant write permissions to this key
- Press
Add key
- Go to
- Setup variable
SSH_PUSH_KEY
into CICD variables:- Go to
Settings > CI/CD > Variables
- Press
Add variable
- Check
Masked and hidden
andProtect variable
- Fill
Description
withUsed by Bump-My-Version
- Fill
Key
withSSH_PUSH_KEY
- Encode the content of the file
bump-my-version
to base 64:python -m base64 -e .\bump-my-version
- Fill
Value
with the b64 encoded key
- Go to
- Permanently delete
bump-my-version
andbump-my-version.pub
files - Include the CICD component in your CICD configuration
include:
- component: $CI_SERVER_FQDN/swepy/cicd-templates/bump-my-version/bump-my-version@0.4.0
Component inputs
Name | Description | Default |
---|---|---|
image |
Image for the job. | ghcr.io/astral-sh/uv:0.7.13-python3.13-alpine |
stage |
Stage of the job. | deploy |
bump-strategies |
Bump strategies that should be available. | [ major, minor, patch ] |