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: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2310>
This commit is contained in:
jo 2022-12-28 08:32:12 +01:00 committed by Marge
parent fb87d3141a
commit 3420ea9f16
1 changed files with 5 additions and 5 deletions

View File

@ -268,9 +268,8 @@ build_documentation:
stage: build stage: build
image: python:3.11 image: python:3.11
needs: needs:
- build_openapi_schema - job: build_openapi_schema
dependencies: artifacts: true
- build_openapi_schema
variables: variables:
BUILD_PATH: "../public" BUILD_PATH: "../public"
GIT_STRATEGY: clone GIT_STRATEGY: clone
@ -345,8 +344,9 @@ build_api:
deploy_documentation: deploy_documentation:
stage: publish stage: publish
image: alpine image: alpine
dependencies: needs:
- build_documentation - job: build_documentation
artifacts: true
before_script: before_script:
- apk add openssh-client rsync - apk add openssh-client rsync
- mkdir -p ~/.ssh - mkdir -p ~/.ssh