diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f69d2110aa998e911f1e59f57e3042bf6056bbb5..03448525a9d02699188380c30b6fce16781e21ad 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -59,6 +59,27 @@ deploy-int-release-dev-cscs: SPACK_ENV: test RELEASE_NAME: EBRAINS-test resource_group: shared-NFS-mount-dev-cscs + tags: # this is just to ensure that the two jobs will run on different runners + - read-write # to avoid issues with common environment variables + - shell-runner + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PROJECT_NAMESPACE =~ /platform\/esd/ && $CI_PIPELINE_SOURCE != "schedule" + +# Deploy in the lab-dev environment the version of the tools to be +# tested before released to production (push pipeline) +# deploy on the dev environment of the k8s dev cluster at CINECA +# runs on protected branches only as the token variable is protected +deploy-int-release-dev-cineca: + extends: .deploy-build-environment + variables: + OPENSHIFT_SERVER: $CINECA_K8S_DEV_SERVER + OPENSHIFT_TOKEN: $CINECA_K8S_DEV_TOKEN + OC_PROJECT: jupyterhub + LAB_KERNEL_ROOT: /srv/jupyterlab_kernels/int + INSTALLATION_ROOT: /srv/test-build-2402 + SPACK_ENV: test + RELEASE_NAME: EBRAINS-test + resource_group: shared-NFS-mount-dev-cineca rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PROJECT_NAMESPACE =~ /platform\/esd/ && $CI_PIPELINE_SOURCE != "schedule" @@ -98,6 +119,28 @@ deploy-exp-release-dev-cscs: SPACK_ENV: experimental RELEASE_NAME: EBRAINS-experimental resource_group: shared-NFS-mount-dev-cscs + tags: # this is just to ensure that the two jobs will run on different runners + - read-write # to avoid issues with common environment variables + - shell-runner + rules: + - if: $CI_PIPELINE_SOURCE == "schedule" && $DEPLOYMENT == "dev" + +# Deploy the experimental release of tools (sheduled pipeline) +# once a week from latest working version of integration release +# (branch=experimental_release) to an experimental JupyterLab kernel +# deploy on the dev environment of the k8s dev cluster at CINECA +# runs on protected branches only as the token variable is protected +deploy-exp-release-dev-cineca: + extends: .deploy-build-environment + variables: + OPENSHIFT_SERVER: $CINECA_K8S_DEV_SERVER + OPENSHIFT_TOKEN: $CINECA_K8S_DEV_TOKEN + OC_PROJECT: jupyterhub + LAB_KERNEL_ROOT: /srv/jupyterlab_kernels/int + INSTALLATION_ROOT: /srv/test-build-2402 + SPACK_ENV: experimental + RELEASE_NAME: EBRAINS-experimental + resource_group: shared-NFS-mount-dev-cineca rules: - if: $CI_PIPELINE_SOURCE == "schedule" && $DEPLOYMENT == "dev" @@ -118,9 +161,6 @@ deploy-exp-release-prod-cscs: SPACK_ENV: experimental RELEASE_NAME: EBRAINS-experimental resource_group: shared-NFS-mount-prod-cscs - tags: # this is just to ensure that the two jobs will run on different runners - - read-write # to avoid issues with common environment variables - - shell-runner rules: - if: $CI_PIPELINE_SOURCE == "schedule" && $DEPLOYMENT == "prod"