CD: Package Index (#11665)

Build the docker image for the new package index REST API on each
merge/push to develop and master.
This commit is contained in:
Axel Huebl
2019-06-10 18:21:33 +02:00
committed by GitHub
parent 0953cd3a2e
commit d4008db75d
5 changed files with 53 additions and 0 deletions

View File

@@ -37,10 +37,14 @@ for config in share/spack/docker/config/* ; do
./share/spack/docker/build-image.sh;
done
spack list --format version_json > packages.json
./share/spack/packages/build-image.sh
if [ "$TEST_SUITE" '=' "docker" -a \
"$TRAVIS_EVENT_TYPE" != "pull_request" ] && ensure_docker_login ; then
for config in share/spack/docker/config/* ; do
source "$config"
./share/spack/docker/push-image.sh
done
./share/spack/packages/push-image.sh
fi