readme work

This commit is contained in:
Wolfgang Hottgenroth 2019-05-30 15:52:10 +02:00
parent 255ff55cee
commit 131ab9e789
Signed by: wn
GPG Key ID: B586EAFCDF2F65F4

View File

@ -80,6 +80,30 @@ Command:
-f FILE_TO_BE_RELEASED -F RELEASE_INFO_FILE
### Use in CI script
The PRIVATE_TOKEN should not be entered directly into the CI script but added as protected a CI variable to you particular project.
Then add the following stage into your CI script:
release:
stage: release
image: registry.gitlab.com/wolutator/base-build-env
tags:
- hottis
- linux
- docker
only:
- release
script:
- gitlabreleaseuploader.py -p $PRIVATE_TOKEN -i $CI_PROJECT_ID -u $CI_PROJECT_URL
-f gitlabreleaseuploader.py -F info.json -T $CI_COMMIT_REF_NAME
Most information are taken from CI builtin variables, the tag name, release name and release description should be stored in
the info file, which is under version control.
To avoid releasing a file with everything single push to an arbitrary branch, add the ``only`` block.