From e7ad16970883a6ca91c6c7ff5dc63e2d74404cfa Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Tue, 22 Aug 2023 11:43:44 +0200 Subject: [PATCH] [ci] Added label ci::web only (fast) which skips notebook execution. --- .gitlab-ci.yml | 5 ++++- scripts/ci/jobs/web-preview.yml | 9 +++++++-- scripts/ci/pipelines/web-fast.yml | 4 ++++ 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 scripts/ci/pipelines/web-fast.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d30a240c4e8..589a271c045 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -57,7 +57,10 @@ include: - if: $CI_PIPELINE_SOURCE != "schedule" && $CI_MERGE_REQUEST_LABELS !~ /.*ci::\w* only.*/ - local: "/scripts/ci/pipelines/web.yml" rules: - - if: $CI_MERGE_REQUEST_LABELS =~ /.*ci::web only.*/ + - if: $CI_MERGE_REQUEST_LABELS =~ /.*ci::web only?($|,)/ + - local: "/scripts/ci/pipelines/web-fast.yml" + rules: + - if: $CI_MERGE_REQUEST_LABELS =~ /.*ci::web only \(fast.*/ - local: "/scripts/ci/pipelines/scheduled.yml" rules: - if: '$CI_PIPELINE_SOURCE == "schedule"' diff --git a/scripts/ci/jobs/web-preview.yml b/scripts/ci/jobs/web-preview.yml index 81fab95d3a4..2314945f8f3 100644 --- a/scripts/ci/jobs/web-preview.yml +++ b/scripts/ci/jobs/web-preview.yml @@ -1,12 +1,17 @@ preview web site: stage: build image: $WEB_IMAGE - needs: [ci_images, "build linux arch", "build mac petsc arm64"] + needs: + - job: ci_images + - job: "build linux arch" + optional: true + - job: "build mac petsc arm64" + optional: true variables: HUGO_ENVIRONMENT: "staging" script: # Copy notebook pages - - cp -rl build/*/web/content web/ + - cp -rl build/*/web/content web/ || true - cd web # Symlink for prj link checks (data-link shortcode) - ln -s ../Tests . diff --git a/scripts/ci/pipelines/web-fast.yml b/scripts/ci/pipelines/web-fast.yml new file mode 100644 index 00000000000..f317ead02e1 --- /dev/null +++ b/scripts/ci/pipelines/web-fast.yml @@ -0,0 +1,4 @@ +include: + - local: "/scripts/ci/jobs/ci_images.yml" + - local: "/scripts/ci/jobs/pre-commit.yml" + - local: "/scripts/ci/jobs/web-preview.yml" -- GitLab