add 'realclean' make target to clear out container images

...and use that in bin/release, so that we don't build releases with
ancient images.
This commit is contained in:
Matthias Radestock
2017-07-29 21:16:39 +01:00
parent a136af2e25
commit 2cd8b3388f
2 changed files with 22 additions and 5 deletions

View File

@@ -88,7 +88,7 @@ build() {
## Inject the version numbers and build the distributables
## (library versions?)
sed -i.tmp "s/SCRIPT_VERSION=\"[^\"]*\"/SCRIPT_VERSION=\"$VERSION\"/" ./scope
make SUDO="$SUDO" SCOPE_VERSION="$VERSION" DOCKERHUB_USER="$DOCKERHUB_USER"
make SUDO="$SUDO" SCOPE_VERSION="$VERSION" DOCKERHUB_USER="$DOCKERHUB_USER" realclean all
if make tests SUDO="$SUDO"; then
echo -e '\u2713 Tests pass'