Skip to content
Snippets Groups Projects
Verified Commit 6a4a291a authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: pipeline

parent 5eae3b92
No related branches found
No related tags found
No related merge requests found
Pipeline #8326 failed
......@@ -78,13 +78,14 @@ build-testenv:
## Determine the cppinttest branch...
# ... use an f-branch if posible...
- if echo "$CI_COMMIT_REF_NAME" | grep -c "^f-" ; then
# this is an f-branch
CPPINT_REF=$CI_COMMIT_REF_NAME ;
fi
# ... or use main if possible...
- if [[ "$CI_COMMIT_REF_NAME" == "main" ]] ; then
CPPINT_REF=main ;
fi
# ... and fall-back to dev
- CPPINT_REF=${CPPINT_REF:-dev}
......@@ -136,7 +137,6 @@ test:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- if [[ "$CAOSDB_TAG" == "" ]]; then
# the CAOSDB_TAG has to be guessed...
if echo "$F_BRANCH" | grep -c "^f-" ; then
CAOSDB_TAG=${DEPLOY_REF}_F_${F_BRANCH}-latest;
echo "Load deploy images with tag $CAOSDB_TAG ..."
......@@ -146,17 +146,14 @@ test:
echo "Load deploy images with tag $CAOSDB_TAG ..."
docker pull $CI_REGISTRY/caosdb/src/caosdb-deploy:$CAOSDB_TAG ;
echo "Load deploy images with tag $CAOSDB_TAG ... success"
fi
fi ;
else
# no F_BRANCH -> use default DEPLOY_REF branch
CAOSDB_TAG=${DEPLOY_REF}-latest ;
echo "Load deploy images with tag $CAOSDB_TAG ..."
docker pull $CI_REGISTRY/caosdb/src/caosdb-deploy:$CAOSDB_TAG ;
echo "Load deploy images with tag $CAOSDB_TAG ... success"
fi;
else
# If the CAOSDB_TAG was given
echo "Load deploy images with tag $CAOSDB_TAG ..."
docker pull $CI_REGISTRY/caosdb/src/caosdb-deploy:$CAOSDB_TAG ;
echo "Load deploy images with tag $CAOSDB_TAG ... success"
......@@ -165,8 +162,8 @@ test:
- docker load < /image-cache/${CPPINTTEST_IMAGE_CACHE} || true
- docker pull $CPPINTTEST_REGISTRY_IMAGE
# load any(!!!) mariab image
- docker load < /image-cache/mariadb.tar || true
# load any(!!!) mariab image
- cd .docker
# here the server and the mysql backend docker are being started
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment