From ea127ad8e9c742244c429cbef63105a67767cee5 Mon Sep 17 00:00:00 2001 From: David Gilbert <david.gilbert@rwth-aachen.de> Date: Mon, 8 Jan 2024 15:10:03 +0100 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 430d8ff..026c0f8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,7 +30,9 @@ stages: - deploy Build_Windows: - only: ['web', 'schedules'] + rules: + - if: $CI_PIPELINE_SOURCE == "web" + - if: $CI_PIPELINE_SOURCE == "schedule" extends: .Build_Windows_ tags: - windows @@ -40,7 +42,9 @@ Build_Windows: # CLIENT_CONFIG: "Shipping" Build_Linux: - only: ['web', 'schedules'] + rules: + - if: $CI_PIPELINE_SOURCE == "web" + - if: $CI_PIPELINE_SOURCE == "schedule" extends: .Build_Linux_ # override image from base script as there is no official 4.26 image image: registry.git-ce.rwth-aachen.de/vr-vis/vr-group/unreal-development/unreal-docker-ci-images/4-26_linux @@ -52,14 +56,18 @@ Build_Linux: # CLIENT_CONFIG: "Shipping" Deploy_Windows: - only: ['web', 'schedules'] + rules: + - if: $CI_PIPELINE_SOURCE == "web" + - if: $CI_PIPELINE_SOURCE == "schedule" extends: .Deploy_VRDev_ needs: - job: "Build_Windows" artifacts: true Deploy_CAVE: - only: ['web', 'schedules'] + rules: + - if: $CI_PIPELINE_SOURCE == "web" + - if: $CI_PIPELINE_SOURCE == "schedule" extends: .Deploy_CAVE_ needs: - job: "Build_Linux" -- GitLab