From 6b650613a6390d035c7b684fe61e071ebcda9ffb Mon Sep 17 00:00:00 2001 From: David Schwarzmann <david.schwarzmann@codecentric.de> Date: Mon, 26 Jul 2021 17:09:07 +0200 Subject: [PATCH] ci(Gitlab-CI): Update needs/dependencies for jobs --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 775b14878..8d25d7fd3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,6 +26,8 @@ build: paths: - build/ expire_in: 30 days + rules: + - when: always upload:review: stage: upload @@ -35,6 +37,8 @@ upload:review: on_stop: stop:review auto_stop_in: 2 week url: https://docs.fitko.de/preview/fit-connect/$CI_COMMIT_REF_SLUG + needs: + - build rules: - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH before_script: @@ -48,6 +52,8 @@ upload:production: environment: name: production url: https://docs.fitko.de/fit-connect/ + needs: + - build rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH before_script: @@ -61,6 +67,8 @@ stop:review: environment: name: review/$CI_COMMIT_REF_NAME action: stop + needs: + - upload:review rules: - if: $CI_MERGE_REQUEST_ID when: manual -- GitLab