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

feat: set named build-context to spack-environment

parent 83360e89
No related branches found
No related tags found
1 merge request!619feat: set named build-context to spack-environment
...@@ -258,7 +258,7 @@ jug_dev:default: ...@@ -258,7 +258,7 @@ jug_dev:default:
--build-arg S3_SECRET_KEY=${S3_SECRET_KEY} --build-arg S3_SECRET_KEY=${S3_SECRET_KEY}
--build-arg JUG_VERSION=${INTERNAL_TAG}-$(git rev-parse HEAD) --build-arg JUG_VERSION=${INTERNAL_TAG}-$(git rev-parse HEAD)
--build-arg jobs=${JOBS} --build-arg jobs=${JOBS}
--build-context spack=. --build-context spack-environment=spack-environment
--secret id=mirrors,src=mirrors.yaml --secret id=mirrors,src=mirrors.yaml
containers/jug containers/jug
; done ; done
......
...@@ -101,7 +101,7 @@ RUN git clone https://github.com/${EICSPACK_ORGREPO}.git ${EICSPACK_ROOT} \ ...@@ -101,7 +101,7 @@ RUN git clone https://github.com/${EICSPACK_ORGREPO}.git ${EICSPACK_ROOT} \
&& spack repo add --scope site "${EICSPACK_ROOT}" && spack repo add --scope site "${EICSPACK_ROOT}"
## Setup our custom environment (secret mount for write-enabled mirror) ## Setup our custom environment (secret mount for write-enabled mirror)
COPY --from=spack spack-environment/ /opt/spack-environment/ COPY --from=spack-environment . /opt/spack-environment/
ARG ENV=dev ARG ENV=dev
ENV SPACK_ENV=/opt/spack-environment/${ENV} ENV SPACK_ENV=/opt/spack-environment/${ENV}
RUN --mount=type=cache,target=/ccache,id=${TARGETPLATFORM} \ RUN --mount=type=cache,target=/ccache,id=${TARGETPLATFORM} \
......
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