diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e8bc3c8d2427efd08bae8c4ec0176b6addf642cd..01d806ef3b90b375f11903630ccc32e3a61c02eb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -99,17 +99,23 @@ unittests-mysql-5: # Trigger building of server image and integration tests trigger_build: - tags: [ docker ] stage: deploy - script: - - /usr/bin/curl -X POST - -F token=$CI_JOB_TOKEN - -F "variables[F_BRANCH]=$CI_COMMIT_REF_NAME" - -F "variables[MYSQLBACKEND]=$CI_COMMIT_REF_NAME" - -F "variables[TriggerdBy]=MYSQLBACKEND" - -F "variables[TriggerdByHash]=$CI_COMMIT_SHORT_SHA" - -F ref=$DEPLOY_REF https://gitlab.indiscale.com/api/v4/projects/14/trigger/pipeline - + inherit: + variables: + # List the variables that shall be inherited, which also means they will override any equally + # named varibles in child pipelines. + - DEPLOY_REF + variables: + F_BRANCH: $CI_COMMIT_REF_NAME + MYSQLBACKEND: $CI_COMMIT_REF_NAME + TRIGGERED_BY_REPO: MYSQLBACKEND + TRIGGERED_BY_REF: $CI_COMMIT_REF_NAME + TRIGGERED_BY_HASH: $CI_COMMIT_SHORT_SHA + + trigger: + project: caosdb/src/caosdb-deploy + branch: $DEPLOY_REF + strategy: depend # Build the sphinx documentation and make it ready for deployment by Gitlab Pages # Special job for serving a static website. See https://docs.gitlab.com/ee/ci/yaml/README.html#pages