gitlab: release branch pipelines rebuild what changed (#43990)

This commit is contained in:
Scott Wittenburg 2024-05-04 02:11:48 -06:00 committed by GitHub
parent 09cea230b4
commit aae7a22d39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -78,24 +78,14 @@ default:
when: never when: never
- if: $SPACK_CI_ENABLE_STACKS =~ /.+/ && $SPACK_CI_STACK_NAME !~ $SPACK_CI_ENABLE_STACKS - if: $SPACK_CI_ENABLE_STACKS =~ /.+/ && $SPACK_CI_STACK_NAME !~ $SPACK_CI_ENABLE_STACKS
when: never when: never
- if: $CI_COMMIT_REF_NAME == "develop" - if: $CI_COMMIT_REF_NAME == "develop" || $CI_COMMIT_REF_NAME =~ /^releases\/v.*/
# Pipelines on develop only rebuild what is missing from the mirror # Pipelines on develop/release branches only rebuild what is missing from the mirror
when: always when: always
variables: variables:
SPACK_PIPELINE_TYPE: "spack_protected_branch" SPACK_PIPELINE_TYPE: "spack_protected_branch"
SPACK_COPY_BUILDCACHE: "${PROTECTED_MIRROR_PUSH_DOMAIN}/${CI_COMMIT_REF_NAME}" SPACK_COPY_BUILDCACHE: "${PROTECTED_MIRROR_PUSH_DOMAIN}/${CI_COMMIT_REF_NAME}"
SPACK_REQUIRE_SIGNING: "True" SPACK_REQUIRE_SIGNING: "True"
OIDC_TOKEN_AUDIENCE: "protected_binary_mirror" 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.*/ - 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 # Pipelines on tags (release or dev snapshots) only copy binaries from one mirror to another
when: always when: always