Skip to content
Snippets Groups Projects
Commit 6c5dce59 authored by Ujwal Kundur's avatar Ujwal Kundur
Browse files

Fix 5

Move CACHE_BUST before COPY spack.yaml command
parent 7528cef2
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,11 @@ RUN --mount=type=cache,target=/var/cache/spack-mirror \
&& spack mirror add docker /var/cache/spack-mirror \
&& spack mirror list
## This variable will change whenevery either spack.yaml or our spack package
## overrides change, triggering a rebuild
ARG CACHE_BUST="hash"
ARG CACHE_NUKE=""
## Setup our custom environment and package overrides
COPY spack $SPACK_ROOT/eic-spack
RUN spack repo add --scope site "$SPACK_ROOT/eic-spack" \
......@@ -83,10 +88,6 @@ RUN spack repo add --scope site "$SPACK_ROOT/eic-spack" \
&& spack env activate . \
&& spack concretize
## This variable will change whenevery either spack.yaml or our spack package
## overrides change, triggering a rebuild
ARG CACHE_BUST="hash"
ARG CACHE_NUKE=""
## Now execute the main build (or fetch from cache if possible)
## note, no-check-signature is needed to allow the quicker signature-less
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment