Commit d788df5c authored by Christopher Schinnerl's avatar Christopher Schinnerl

abort deploy on error

parent a8467e5e
Pipeline #25876944 (#14) passed with stages
in 23 minutes
......@@ -4,7 +4,6 @@ mkdir artifacts
for arch in amd64 arm; do
for os in darwin linux windows; do
for pkg in siac siad; do
echo $arch/$os
if [ "$arch" == "arm" ]; then
if [ "$os" == "windows" ] || [ "$os" == "darwin" ]; then
continue
......@@ -15,7 +14,11 @@ for arch in amd64 arm; do
if [ "$os" == "windows" ]; then
bin=${pkg}.exe
fi
GOOS=${os} GOARCH=${arch} go build -tags='netgo' -o artifacts/$arch/$os/$bin ./cmd/$pkg
if [ $? -ne 0 ]; then
exit $?
fi
done
done
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment