diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d30a240c4e8fac311146bd3ae5144483fa673b41..589a271c04568eb708b28b54a54a5e56cd4a7c9b 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 81fab95d3a4e0f8a0c786a39784d37573339fd08..2314945f8f3cfd9e9957bc2e724f0354500569c5 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 0000000000000000000000000000000000000000..f317ead02e12ef3c19df12a4546b2fd864cc4c50 --- /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"