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

fix: source setup-env.sh

parent da0f6340
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,8 @@ RUN --mount=type=cache,target=/ccache,id=${TARGETPLATFORM} \
--mount=type=secret,id=mirrors,target=/opt/spack/etc/spack/mirrors.yaml \
<<EOF
set -e
export CCACHE_DIR=/ccache
export CCACHE_DIR=/CCACHE_DIR
source ${SPACK_ROOT}/share/spack/setup-env.sh
find /var/cache/spack/blobs/sha256/ -atime +7 -delete
spack buildcache update-index eics3rw
spack env activate --dir ${SPACK_ENV}
......@@ -152,7 +153,7 @@ RUN --mount=type=cache,target=/ccache,id=${TARGETPLATFORM} \
--mount=type=cache,target=/var/cache/spack \
--mount=type=secret,id=mirrors,target=/opt/spack/etc/spack/mirrors.yaml \
<<EOF
source $SPACK_ROOT/share/spack/setup-env.sh
source ${SPACK_ROOT}/share/spack/setup-env.sh
export CCACHE_DIR=/ccache
spack buildcache update-index eics3rw
spack env activate --dir ${SPACK_ENV}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment