Skip to content
Snippets Groups Projects
Unverified Commit ec3b5efa authored by Andrei Gherzan's avatar Andrei Gherzan :penguin:
Browse files

.gitlab-ci.yml: Fix build docs rules


The generic pipelines triggers the build docs jobs based on the
assumption that the docs are in a docs subdirectoy. That is not the case
in the docs repository which includes only documentation.

Signed-off-by: Andrei Gherzan's avatarAndrei Gherzan <andrei.gherzan@huawei.com>
parent 778c8301
No related branches found
No related tags found
No related merge requests found
...@@ -50,6 +50,11 @@ build-docs: ...@@ -50,6 +50,11 @@ build-docs:
script: script:
- !reference [.workspace, script] - !reference [.workspace, script]
- !reference [.build-docs, script] - !reference [.build-docs, script]
rules:
# Build the docs when a merge request is created.
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
# Or when things land.
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
deploy: deploy:
extends: .workspace extends: .workspace
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment