From c97439eef79cdee92026099fe1ad4bc5506c4a0d Mon Sep 17 00:00:00 2001 From: Michael Platings Date: Wed, 24 Jan 2024 16:34:22 +0000 Subject: [PATCH] Use "pages" step in .gitlab-ci.yml https://docs.gitlab.com/ee/ci/yaml/#pages --- .gitlab-ci.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1a56e0f7e..51c0e7e4a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ image: registry.gitlab.arm.com/intrinsiccv/intrinsiccv:3 -build: +.common: tags: - arm64 script: @@ -18,5 +18,16 @@ build: coverage_format: cobertura path: build/cobertura-coverage.xml paths: - # GitLab Pages https://docs.gitlab.com/ee/user/project/pages/ - public + +# On the main branch publish pages. +pages: + extends: .common + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + +# On other branches don't publish pages. +test: + extends: .common + rules: + - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH -- GitLab