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: ...@@ -78,13 +78,14 @@ build-testenv:
## Determine the cppinttest branch... ## Determine the cppinttest branch...
# ... use an f-branch if posible... # ... use an f-branch if posible...
- if echo "$CI_COMMIT_REF_NAME" | grep -c "^f-" ; then - if echo "$CI_COMMIT_REF_NAME" | grep -c "^f-" ; then
# this is an f-branch
CPPINT_REF=$CI_COMMIT_REF_NAME ; CPPINT_REF=$CI_COMMIT_REF_NAME ;
fi fi
# ... or use main if possible... # ... or use main if possible...
- if [[ "$CI_COMMIT_REF_NAME" == "main" ]] ; then - if [[ "$CI_COMMIT_REF_NAME" == "main" ]] ; then
CPPINT_REF=main ; CPPINT_REF=main ;
fi fi
# ... and fall-back to dev # ... and fall-back to dev
- CPPINT_REF=${CPPINT_REF:-dev} - CPPINT_REF=${CPPINT_REF:-dev}
...@@ -136,7 +137,6 @@ test: ...@@ -136,7 +137,6 @@ test:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- if [[ "$CAOSDB_TAG" == "" ]]; then - if [[ "$CAOSDB_TAG" == "" ]]; then
# the CAOSDB_TAG has to be guessed...
if echo "$F_BRANCH" | grep -c "^f-" ; then if echo "$F_BRANCH" | grep -c "^f-" ; then
CAOSDB_TAG=${DEPLOY_REF}_F_${F_BRANCH}-latest; CAOSDB_TAG=${DEPLOY_REF}_F_${F_BRANCH}-latest;
echo "Load deploy images with tag $CAOSDB_TAG ..." echo "Load deploy images with tag $CAOSDB_TAG ..."
...@@ -146,17 +146,14 @@ test: ...@@ -146,17 +146,14 @@ test:
echo "Load deploy images with tag $CAOSDB_TAG ..." echo "Load deploy images with tag $CAOSDB_TAG ..."
docker pull $CI_REGISTRY/caosdb/src/caosdb-deploy:$CAOSDB_TAG ; docker pull $CI_REGISTRY/caosdb/src/caosdb-deploy:$CAOSDB_TAG ;
echo "Load deploy images with tag $CAOSDB_TAG ... success" echo "Load deploy images with tag $CAOSDB_TAG ... success"
fi fi ;
else else
# no F_BRANCH -> use default DEPLOY_REF branch
CAOSDB_TAG=${DEPLOY_REF}-latest ; CAOSDB_TAG=${DEPLOY_REF}-latest ;
echo "Load deploy images with tag $CAOSDB_TAG ..." echo "Load deploy images with tag $CAOSDB_TAG ..."
docker pull $CI_REGISTRY/caosdb/src/caosdb-deploy:$CAOSDB_TAG ; docker pull $CI_REGISTRY/caosdb/src/caosdb-deploy:$CAOSDB_TAG ;
echo "Load deploy images with tag $CAOSDB_TAG ... success" echo "Load deploy images with tag $CAOSDB_TAG ... success"
fi; fi;
else else
# If the CAOSDB_TAG was given
echo "Load deploy images with tag $CAOSDB_TAG ..." echo "Load deploy images with tag $CAOSDB_TAG ..."
docker pull $CI_REGISTRY/caosdb/src/caosdb-deploy:$CAOSDB_TAG ; docker pull $CI_REGISTRY/caosdb/src/caosdb-deploy:$CAOSDB_TAG ;
echo "Load deploy images with tag $CAOSDB_TAG ... success" echo "Load deploy images with tag $CAOSDB_TAG ... success"
...@@ -165,8 +162,8 @@ test: ...@@ -165,8 +162,8 @@ test:
- docker load < /image-cache/${CPPINTTEST_IMAGE_CACHE} || true - docker load < /image-cache/${CPPINTTEST_IMAGE_CACHE} || true
- docker pull $CPPINTTEST_REGISTRY_IMAGE - docker pull $CPPINTTEST_REGISTRY_IMAGE
# load any(!!!) mariab image
- docker load < /image-cache/mariadb.tar || true - docker load < /image-cache/mariadb.tar || true
# load any(!!!) mariab image
- cd .docker - cd .docker
# here the server and the mysql backend docker are being started # 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.
Please register or to comment