From 3420ea9f169c078b16f52839826e406e5c0013d9 Mon Sep 17 00:00:00 2001 From: jo Date: Wed, 28 Dec 2022 08:32:12 +0100 Subject: [PATCH] ci: don't use dependencies and needs together Using dependencies and needs together doesn't work, the needs will be ignored. In addition, needs doesn't load the "needed job" artifacts by default, it has to be specified. Part-of: --- .gitlab-ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3fded4397..e3d3f5b5a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -268,9 +268,8 @@ build_documentation: stage: build image: python:3.11 needs: - - build_openapi_schema - dependencies: - - build_openapi_schema + - job: build_openapi_schema + artifacts: true variables: BUILD_PATH: "../public" GIT_STRATEGY: clone @@ -345,8 +344,9 @@ build_api: deploy_documentation: stage: publish image: alpine - dependencies: - - build_documentation + needs: + - job: build_documentation + artifacts: true before_script: - apk add openssh-client rsync - mkdir -p ~/.ssh