Build docker images with spack inside

This prevents that the executing runner needs to be prepared to access GitHub
This commit is contained in:
Dominic Kempf
2020-05-13 16:38:17 +00:00
parent bf5d6f1e23
commit d3af0fd937
3 changed files with 34 additions and 8 deletions

View File

@ -1,14 +1,12 @@
---
before_script:
- git clone -b v$SPACK_VERSION https://github.com/spack/spack.git
- . ./spack/share/spack/setup_env.sh
- pwd
- . /spack/share/spack/setup-env.sh
- spack repo add .
image: registry.dune-project.org/docker/ci/debian:10
spectest:v0.14.2:
variables:
- SPACK_VERSION : "0.14.2"
script:
- spack spec dune
image: registry.dune-project.org/spack/dune-spack:v0.14.2
script: spack spec dune
tags:
- cores:1