Pipeline: CPPLIB_REGISTRY_IMAGE uses local branch name
Summary
In .gitlab-cy.yml, CPPLIB_REGISTRY_IMAGE
uses the local $CI_COMMIT_REF_NAME
, which may not exist or have a different meaning on caosdb-cpplib:
CPPLIB_REGISTRY_IMAGE: $CI_REGISTRY/caosdb/src/caosdb-cpplib/testenv:$CI_COMMIT_REF_NAME
For example, release-X
may have a different meaning in both repositories. Reusing the branch name only makes sense for some branches, such as main
, dev
or f-some-feature
.
Expected Behavior
The branch should have some default and only be changed for some special cases.
Actual Behavior
The branch always uses $CI_COMMIT_REF_NAME
.
Steps to Reproduce the Problem
- Try to run the pipeline with
release-0.2.0
, while the correct cpplib branch ismain
.
Specifications
- Version: Which version of this software?
- Platform: Which operating system, which other relevant software versions?
Possible fixes
- Set the variable later.