blob: adde5842ab373331f3e270731f7e187aa5ac87f1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/usr/bin/env bash
#
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
script="$( basename "$0" )"
cd "$( dirname "$0" )"
export IMAGE="spack/packages.spack.io:latest"
if [ "$script" '=' 'push-image.sh' ] ; then
docker push "${IMAGE}"
else
docker build --no-cache --force-rm -t "${IMAGE}" .
fi
|