From ab458791927f36cf733b5c800b644fd70017d1dd Mon Sep 17 00:00:00 2001
From: Athanasios Karmas <karmas@athenarc.gr>
Date: Fri, 9 Jul 2021 14:46:22 +0000
Subject: [PATCH] Update spack.yaml

---
 spack.yaml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/spack.yaml b/spack.yaml
index 498720ff..94295a60 100644
--- a/spack.yaml
+++ b/spack.yaml
@@ -43,7 +43,7 @@ spack:
     - [$oses]
 
   mirrors:
-    local_something: /builds/akarmas/ebrains-spack-builds/jobs_scratch_dir/local_mirror
+    local_something: /builds/akarmas/ebrains-spack-builds/jobs_scratch_dir/mirror
     # some random cache :p (build_cache/ gets added)
     #hacky_cache: https://brainscales-r.kip.uni-heidelberg.de:7443/nmpi/tmp
     ebrains_cache: https://object.cscs.ch/v1/AUTH_9c619ee75cab4993b1c4c86a37586357/test_spack/tc-tmp-cache
@@ -89,3 +89,9 @@ spack:
         - git clone ${SPACK_REPO}
         - pushd spack && git checkout ${SPACK_CHECKOUT_VERSION} && popd
         - . "./spack/share/spack/setup-env.sh"
+      after_script:
+        - tar czvf binary_artifacts.tar.gz jobs_scratch_dir/mirror/build_cache/*
+      artifacts:
+       paths:
+         - binary_artifacts.tar.gz
+
-- 
GitLab