Browse Source

when building a release in docker, only call rmi if the release happened properly

sungo 10 months ago
parent
commit
5d8b70811d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docker/release.bash

+ 2 - 2
docker/release.bash

@@ -33,6 +33,6 @@ docker run --rm \
 	--name ${BUILDER}_${BUILDNUMBER} \
 	-u $(id -u):$(id -g) \
 	--mount type=bind,source="${PWD}/release",target="/home/app/go/src/github.com/joyent/conch-shell/release" \
-	${IMAGE_NAME};
-
+	${IMAGE_NAME} \
+&& \
 docker rmi ${IMAGE_NAME}