Don't push if the build failed

This commit is contained in:
Matt Palmer 2017-11-22 09:01:32 +11:00
parent 21ea40b9ba
commit 50495bc774
1 changed files with 2 additions and 0 deletions

2
build
View File

@ -1,4 +1,6 @@
#!/bin/bash #!/bin/bash
set -e
docker build --build-arg=http_proxy=$http_proxy -t discourse/auth-proxy . docker build --build-arg=http_proxy=$http_proxy -t discourse/auth-proxy .
docker push discourse/auth-proxy docker push discourse/auth-proxy