Why are we using bar docker to build our docker image in the CI
Currently, the command the docker image in the ci looks like:
129 - docker build
130 --pull
131 --build-arg MYSQLBACKEND=$MYSQLBACKEND
132 --build-arg SERVER=$SERVER
133 --build-arg WEBUI=$WEBUI
134 --build-arg PYLIB=$PYLIB
135 --cache-from $CI_REGISTRY_IMAGE:latest
136 -t $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
137 -t $CI_REGISTRY_IMAGE:$REFTAG-latest
138 -t $CI_REGISTRY_IMAGE:latest .
In order to define the repository version that shall be used for a release, those need to be given in the .gitlab-ci.yml
file. An alternative would be to use the linkahead script also in the CI and define the versions in defaults.yml
.
This would however require that the variables for repo revisions (in non releases) need to be written into the defaults.yml
in order to use e.g. f-feature branches.