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

9
build_ci_images.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
set -e
version="$1"
docker build -t registry.dune-project.org/spack/dune-spack:$version --build-arg version=$version .
docker login registry.dune-project.org
docker push registry.dune-project.org/spack/dune-spack:$version
docker logout registry.dune-project.org