Skip to content
Snippets Groups Projects
Commit 70505a80 authored by Emanuele Aina's avatar Emanuele Aina
Browse files

gitlab-ci: Fix the pipeline on forks


Our guidelines say that to contribute people should fork repositories,
but at the moment this gives them a broken pipeline.

Tweak things in a way that the main project triggers
tests/apertis-test-cases-web to collect and indirectly publish all the
release branches while forked repositories directly publish their own
branches via Pages for easier testing.

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent d9b6d7a9
No related branches found
No related tags found
1 merge request!216Backports from v2022dev0 to v2020
Pipeline #253362 passed
......@@ -21,8 +21,24 @@ render-pages:
paths:
- ${release}
# the main project triggers tests/apertis-test-cases-web to collect and indirectly publish all the release branches
deploy-pages:
stage: deploy
trigger:
project: tests/apertis-test-cases-web
branch: main
rules:
- if: $CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_PATH == "tests/apertis-test-cases"
# forked repositories publish directly to Pages their own branches for easier testing
pages:
stage: deploy
script:
- mv ${release} public/
rules:
- if: $CI_PROJECT_PATH == "tests/apertis-test-cases"
when: never
- if: $CI_PIPELINE_SOURCE == "push"
artifacts:
paths:
- public/
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