Skip to content
Snippets Groups Projects
Commit 18374c47 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

feat: rm cache nuke

parent 5f8dcee5
No related branches found
No related tags found
1 merge request!810feat: rm cache nuke
......@@ -156,20 +156,12 @@ ccache --zero-stats
EOF
## Create view at /usr/local
RUN --mount=type=cache,target=/var/cache/spack <<EOF
RUN <<EOF
set -e
rm -r /usr/local
spack -e ${SPACK_ENV} env view enable /usr/local
EOF
## Optional, nuke the buildcache after install, before (re)caching
## This is useful when going to completely different containers,
## or intermittently to keep the buildcache step from taking too much time
ARG CACHE_NUKE=""
RUN --mount=type=cache,target=/var/cache/spack,sharing=locked <<EOF
[ -z "${CACHE_NUKE}" ] || rm -rf /var/cache/spack/mirror/${SPACK_VERSION}/build_cache/*
EOF
## Store environment
RUN <<EOF
set -e
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment