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

feat: pull github api commit summary to spoil cached layers

parent abb83507
No related branches found
No related tags found
1 merge request!364feat: pull github api commit summary to spoil cached layers
...@@ -17,7 +17,7 @@ variables: ...@@ -17,7 +17,7 @@ variables:
## 8bdc5065792c185be9934ab0c2a5b087b8845bd1: emacs: Add option to install version 28.1 ## 8bdc5065792c185be9934ab0c2a5b087b8845bd1: emacs: Add option to install version 28.1
## Spack github version, e.g. v0.18 branch, v0.18.1 tag, or commit hash ## Spack github version, e.g. v0.18 branch, v0.18.1 tag, or commit hash
EICSPACK_VERSION: "v0.18.15" EICSPACK_VERSION: "v0.18"
## Space-separated list of eic-spack cherry-picks ## Space-separated list of eic-spack cherry-picks
EICSPACK_CHERRYPICKS: "" EICSPACK_CHERRYPICKS: ""
......
...@@ -24,6 +24,7 @@ RUN --mount=type=cache,target=/var/cache/apt \ ...@@ -24,6 +24,7 @@ RUN --mount=type=cache,target=/var/cache/apt \
ENV SPACK_ROOT=/opt/spack ENV SPACK_ROOT=/opt/spack
ARG SPACK_VERSION="develop" ARG SPACK_VERSION="develop"
ARG SPACK_CHERRYPICKS="" ARG SPACK_CHERRYPICKS=""
ADD https://api.github.com/repos/spack/spack/commits/$SPACK_VERSION /tmp/spack.json
RUN echo "Part 1: regular spack install (as in containerize)" \ RUN echo "Part 1: regular spack install (as in containerize)" \
&& git clone https://github.com/spack/spack.git /tmp/spack-staging \ && git clone https://github.com/spack/spack.git /tmp/spack-staging \
&& cd /tmp/spack-staging \ && cd /tmp/spack-staging \
...@@ -81,6 +82,7 @@ ARG CACHE_NUKE="" ...@@ -81,6 +82,7 @@ ARG CACHE_NUKE=""
## Setup our custom package overrides ## Setup our custom package overrides
ENV EICSPACK_ROOT=$SPACK_ROOT/var/spack/repos/eic-spack ENV EICSPACK_ROOT=$SPACK_ROOT/var/spack/repos/eic-spack
ARG EICSPACK_VERSION="$SPACK_VERSION" ARG EICSPACK_VERSION="$SPACK_VERSION"
ADD https://api.github.com/repos/eic/eic-spack/commits/$EICSPACK_VERSION /tmp/eic-spack.json
RUN git clone https://github.com/eic/eic-spack.git ${EICSPACK_ROOT} \ RUN git clone https://github.com/eic/eic-spack.git ${EICSPACK_ROOT} \
&& git -C ${EICSPACK_ROOT} checkout ${EICSPACK_VERSION} \ && git -C ${EICSPACK_ROOT} checkout ${EICSPACK_VERSION} \
&& if [ -n "${EICSPACK_CHERRYPICKS}" ] ; then \ && if [ -n "${EICSPACK_CHERRYPICKS}" ] ; then \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment