@ -67,15 +67,30 @@ variables:
|
||||
|
||||
# rc codes https://commitizen-tools.github.io/commitizen/exit_codes/
|
||||
- | # Bump the version
|
||||
|
||||
if [ "0${VERSION_BUMP_INCREMENT}" != '0' ]; then
|
||||
|
||||
export BUMP_INCREMENT="--increment ${VERSION_BUMP_INCREMENT}";
|
||||
|
||||
fi;
|
||||
|
||||
if [ $CI_COMMIT_BRANCH == "development" ]; then
|
||||
|
||||
cz bump --files-only --yes --prerelease alpha
|
||||
cz bump \
|
||||
--files-only \
|
||||
--yes \
|
||||
${BUMP_INCREMENT} \
|
||||
--prerelease alpha \
|
||||
|
||||
|
||||
export VERSION_BUMPED=$?
|
||||
|
||||
elif [ $CI_COMMIT_BRANCH == "master" ]; then
|
||||
|
||||
cz bump --files-only --yes
|
||||
cz bump \
|
||||
--files-only \
|
||||
${BUMP_INCREMENT} \
|
||||
--yes
|
||||
|
||||
export VERSION_BUMPED=$?
|
||||
|
||||
|
||||
@ -29,6 +29,7 @@ To be able to upload to Ansible Galaxy, you will be required to provide the jobs
|
||||
| Variable | Settings | Notes |
|
||||
|:---|:---:|:---|
|
||||
| `ANSIBLE_GALAXY_UPLOAD_TOKEN` | `masked`, `protected` | |
|
||||
| `VERSION_BUMP_INCREMENT` | `major`, `minor`, `patch` | Used for manual run of the job. After setting the variable, that type of version bump will occur. |
|
||||
|
||||
Within your `.gitlab-ci.yml` file there are varibales to be set, please see below.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user