fix in ci again

This commit is contained in:
2021-11-26 15:03:15 +01:00
parent ddc958ec96
commit 82c85bb391

View File

@ -23,6 +23,12 @@ versionize:
- dockerize
when: manual
allow_failure: false
before_script:
- PKG_VERSION=$(echo -e "import yaml\nwith open('openapi.yaml') as f:d=yaml.load(f)\nprint d['info']['version']" | python)
- REFCNT=$(git rev-list --count ${CI_COMMIT_SHA})
- VERSION=${PKG_VERSION}.${REFCNT}.${CI_COMMIT_REF_NAME}
- API_VERSION="1.0.0"
- API_MAJOR_VERSION=1
script:
- echo $INSTANCE_SPECIFIER > instance.txt
- echo -n $API_VERSION > api_version.txt