Skip to content

Commit bc20419

Browse files
committed
ci: update SPACK_EXTRA_MIRROR to use branch ref instead of stack name
The University of Oregon is maintaining a local copy of our top-level develop buildcache to speed up download times and reduce data egress charges. Change the way this environment variable is used by replacing the stack name with a ref name. This fixes a layout problem and allows us to maintain separate develop vs. release buildcache copies at UO if the need arises.
1 parent 3866771 commit bc20419

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.ci/gitlab/configs/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ci:
2222
- k=$CI_GPG_KEY_ROOT/intermediate_ci_signing_key.gpg; [[ -r $k ]] && spack gpg trust -y $k
2323
- k=$CI_GPG_KEY_ROOT/spack_public_key.gpg; [[ -r $k ]] && spack gpg trust -y $k
2424
script::
25-
- - if [ -n "$SPACK_EXTRA_MIRROR" ]; then spack mirror add local "${SPACK_EXTRA_MIRROR}/${SPACK_CI_STACK_NAME}"; fi
25+
- - if [ -n "$SPACK_EXTRA_MIRROR" ]; then spack mirror add local "${SPACK_EXTRA_MIRROR}/${CI_COMMIT_REF_NAME}"; fi
2626
- spack config blame mirrors
2727
- spack spec "/${SPACK_JOB_SPEC_DAG_HASH}"
2828
- - spack --color=always ci rebuild -j ${SPACK_BUILD_JOBS} --tests --timeout 300 > >(tee ${SPACK_ARTIFACTS_ROOT}/user_data/pipeline_out.txt) 2> >(tee ${SPACK_ARTIFACTS_ROOT}/user_data/pipeline_err.txt >&2)

0 commit comments

Comments
 (0)