Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
semversioner semversioner
Operates on semver versions
arguments
returns
bumpVersion:
type: semversioner
arguments:
SEMVERSIONER_VERSION: 5.7.1
SEMVERSIONER_ACTION: bump
SEMVERSIONER_PART: major
checkVersion:
image: alpine
commands:
- 'echo VERSION=${{steps.bumpVersion.output.SEMVERSIONER_RESULT}}'
bumpVersion:
type: semversioner
arguments:
SEMVERSIONER_VERSION: 5.7.1
SEMVERSIONER_ACTION: compare
SEMVERSIONER_VERSION_TO_COMPARE: 5.6.98
checkVersion:
image: alpine
commands:
- 'echo COMPARISON_RESULT=${{steps.bumpVersion.output.SEMVERSIONER_RESULT}}'
bumpVersion:
type: semversioner
arguments:
SEMVERSIONER_VERSION: 5.7.1
SEMVERSIONER_PART: minor