Skip to content
Snippets Groups Projects

feat: install most dependencies in cacheable layer, before adding main

Merged Wouter Deconinck requested to merge cacheable-layer into master
Compare and Show latest version
4 files
+ 7
5
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -132,7 +132,7 @@ RUN --mount=type=cache,target=/ccache,id=${TARGETPLATFORM} \
@@ -132,7 +132,7 @@ RUN --mount=type=cache,target=/ccache,id=${TARGETPLATFORM} \
--mount=type=secret,id=mirrors,target=/opt/spack/etc/spack/mirrors.yaml \
--mount=type=secret,id=mirrors,target=/opt/spack/etc/spack/mirrors.yaml \
<<EOF
<<EOF
set -e
set -e
export CCACHE_DIR=/CCACHE_DIR
export CCACHE_DIR=/ccache
source ${SPACK_ROOT}/share/spack/setup-env.sh
source ${SPACK_ROOT}/share/spack/setup-env.sh
find /var/cache/spack/blobs/sha256/ -atime +7 -delete
find /var/cache/spack/blobs/sha256/ -atime +7 -delete
spack buildcache update-index eics3rw
spack buildcache update-index eics3rw
Loading