CenturyLinkLabs / golang-builder

Containerized build environment for compiling an executable Golang package and packaging it in a light-weight Docker container.
Apache License 2.0
398 stars 85 forks source link

Do an early exit if something breaks #6

Closed Luzifer closed 9 years ago

Luzifer commented 9 years ago

As a coder automating my builds I want to use the golang-builder inside my Makefile or other automation to build my assets in a clean way. If the build isn't successful I want to stop the whole process in order not to do broken deployments.

This is achieved in this commit using #!/bin/bash -e which will ensure bash exits if any exit code is different than 0 and exit the build process with a non-zero exit code.

bdehamer commented 9 years ago

Looks like a good addition. Thanks.