diff options
author | Scott Wittenburg <scott.wittenburg@kitware.com> | 2024-05-04 02:11:48 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-04 10:11:48 +0200 |
commit | aae7a22d3993a878a232e7636843487c10ee4adb (patch) | |
tree | c92694043df4ddf94bc924d0800e9f8570360666 | |
parent | 09cea230b4cacd0e4912de94b03e0708d2452919 (diff) | |
download | spack-aae7a22d3993a878a232e7636843487c10ee4adb.tar.gz spack-aae7a22d3993a878a232e7636843487c10ee4adb.tar.bz2 spack-aae7a22d3993a878a232e7636843487c10ee4adb.tar.xz spack-aae7a22d3993a878a232e7636843487c10ee4adb.zip |
gitlab: release branch pipelines rebuild what changed (#43990)
-rw-r--r-- | share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml b/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml index 9bc238ff6e..ce97257e49 100644 --- a/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml +++ b/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml @@ -78,24 +78,14 @@ default: when: never - if: $SPACK_CI_ENABLE_STACKS =~ /.+/ && $SPACK_CI_STACK_NAME !~ $SPACK_CI_ENABLE_STACKS when: never - - if: $CI_COMMIT_REF_NAME == "develop" - # Pipelines on develop only rebuild what is missing from the mirror + - if: $CI_COMMIT_REF_NAME == "develop" || $CI_COMMIT_REF_NAME =~ /^releases\/v.*/ + # Pipelines on develop/release branches only rebuild what is missing from the mirror when: always variables: SPACK_PIPELINE_TYPE: "spack_protected_branch" SPACK_COPY_BUILDCACHE: "${PROTECTED_MIRROR_PUSH_DOMAIN}/${CI_COMMIT_REF_NAME}" SPACK_REQUIRE_SIGNING: "True" OIDC_TOKEN_AUDIENCE: "protected_binary_mirror" - - if: $CI_COMMIT_REF_NAME =~ /^releases\/v.*/ - # Pipelines on release branches always rebuild everything - when: always - variables: - SPACK_PIPELINE_TYPE: "spack_protected_branch" - SPACK_COPY_BUILDCACHE: "${PROTECTED_MIRROR_PUSH_DOMAIN}/${CI_COMMIT_REF_NAME}" - SPACK_PRUNE_UNTOUCHED: "False" - SPACK_PRUNE_UP_TO_DATE: "False" - SPACK_REQUIRE_SIGNING: "True" - OIDC_TOKEN_AUDIENCE: "protected_binary_mirror" - if: $CI_COMMIT_TAG =~ /^develop-[\d]{4}-[\d]{2}-[\d]{2}$/ || $CI_COMMIT_TAG =~ /^v.*/ # Pipelines on tags (release or dev snapshots) only copy binaries from one mirror to another when: always |