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>
environments/review-docs-1664-292dbg/deployments/16508
jo 2022-12-28 08:32:12 +01:00 zatwierdzone przez Marge
rodzic fb87d3141a
commit 3420ea9f16
1 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -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