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

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.

  1. Create a new SSH key: ssh-keygen -t ed25519 -C "bump-my-version deploy key" -f bump-my-version
  2. Create a new Deploy Key:
    1. Go to Settings > Repository > Deploy Keys > Add new > Key
    2. Set Title to Bump-My-Version
    3. Set Key with the content of the file bump-my-version.pub
    4. Check Grant write permissions to this key
    5. Press Add key
  3. Setup variable SSH_PUSH_KEY into CICD variables:
    1. Go to Settings > CI/CD > Variables
    2. Press Add variable
    3. Check Masked and hidden and Protect variable
    4. Fill Description with Used by Bump-My-Version
    5. Fill Key with SSH_PUSH_KEY
    6. Encode the content of the file bump-my-version to base 64: python -m base64 -e .\bump-my-version
    7. Fill Value with the b64 encoded key
  4. Permanently delete bump-my-version and bump-my-version.pub files
  5. 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 ]