Skip to content
Snippets Groups Projects

chore: pythia8-8.310

Merged Wouter Deconinck requested to merge pythia8-8.310 into master
Files
3
@@ -36,6 +36,8 @@ ARG SPACK_CHERRYPICKS=""
@@ -36,6 +36,8 @@ ARG SPACK_CHERRYPICKS=""
ARG SPACK_CHERRYPICKS_FILES=""
ARG SPACK_CHERRYPICKS_FILES=""
ADD https://api.github.com/repos/${SPACK_ORGREPO}/commits/${SPACK_VERSION} /tmp/spack.json
ADD https://api.github.com/repos/${SPACK_ORGREPO}/commits/${SPACK_VERSION} /tmp/spack.json
RUN <<EOF
RUN <<EOF
 
git config --global user.email "gitlab@eicweb.phy.anl.gov"
 
git config --global user.name "EIC Container Build Service"
git config --global advice.detachedHead false
git config --global advice.detachedHead false
git clone --filter=tree:0 https://github.com/${SPACK_ORGREPO}.git ${SPACK_ROOT}
git clone --filter=tree:0 https://github.com/${SPACK_ORGREPO}.git ${SPACK_ROOT}
git -C ${SPACK_ROOT} checkout ${SPACK_VERSION}
git -C ${SPACK_ROOT} checkout ${SPACK_VERSION}
@@ -45,8 +47,9 @@ if [ -n "${SPACK_CHERRYPICKS}" ] ; then
@@ -45,8 +47,9 @@ if [ -n "${SPACK_CHERRYPICKS}" ] ; then
for hash in ${SPACK_CHERRYPICKS} ; do
for hash in ${SPACK_CHERRYPICKS} ; do
if [ -n "${SPACK_CHERRYPICKS_FILES_ARRAY[${hash}]+found}" ] ; then
if [ -n "${SPACK_CHERRYPICKS_FILES_ARRAY[${hash}]+found}" ] ; then
git -C ${SPACK_ROOT} show ${hash} -- ${SPACK_CHERRYPICKS_FILES_ARRAY[${hash}]//,/ } | patch -p1 -d ${SPACK_ROOT}
git -C ${SPACK_ROOT} show ${hash} -- ${SPACK_CHERRYPICKS_FILES_ARRAY[${hash}]//,/ } | patch -p1 -d ${SPACK_ROOT}
 
git -C ${SPACK_ROOT} commit --all --message "$(git -C ${SPACK_ROOT} show --no-patch --pretty=format:%s ${hash})"
else
else
git -C ${SPACK_ROOT} cherry-pick -n ${hash}
git -C ${SPACK_ROOT} cherry-pick ${hash}
fi
fi
done
done
fi
fi
Loading