Skip to content
Snippets Groups Projects
Verified Commit abe59ccf authored by Daniel Hornung's avatar Daniel Hornung
Browse files

FIX: gitlab-ci now recognizes release branches.

parent 7ccdd987
Branches
Tags
No related merge requests found
Pipeline #33747 passed
Pipeline: caosdb-octaveinttest

#33748

    ......@@ -28,5 +28,5 @@ COPY . /caosdb-octavelib
    WORKDIR /caosdb-octavelib
    RUN rm -rf .git
    RUN pip3 install -r doc/requirements.txt
    RUN pip3 install -r dev-requirements.txt
    RUN pip3 install -U -r doc/requirements.txt
    RUN pip3 install -U -r dev-requirements.txt
    ......@@ -47,6 +47,12 @@ build-testenv:
    image: docker:20.10
    script:
    - DOCKER_BASE_IMAGE="${CPPLIB_REGISTRY_IMAGE}"
    - if [[ "${CI_COMMIT_REF_NAME}" == release* ]] ; then
    echo "Release detected, choosing cpplib image from 'main' branch." ;
    DOCKER_BASE_IMAGE="$CI_REGISTRY/caosdb/src/caosdb-cpplib/testenv:main" ;
    else
    echo "CI_COMMIT_REF_NAME $CI_COMMIT_REF_NAME" ;
    fi
    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
    - if docker pull "$DOCKER_BASE_IMAGE" ; then
    echo "DOCKER_BASE_IMAGE=${DOCKER_BASE_IMAGE}" ;
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment