🐞 Fix error reporting

This commit is contained in:
Christian Mäder 2018-03-05 16:28:35 +01:00
parent 4d16297418
commit bc786364d9
No known key found for this signature in database
GPG Key ID: 92FFD0A711F196BB
3 changed files with 7 additions and 4 deletions

View File

@ -39,19 +39,19 @@ if [ ! -z "${DEBUG}" ] || \
# build the latest release # build the latest release
# shellcheck disable=SC2068 # shellcheck disable=SC2068
./build-latest.sh $@ ./build-latest.sh $@ || ERROR=1
# build the latest pre-release # build the latest pre-release
# shellcheck disable=SC2068 # shellcheck disable=SC2068
PRERELEASE=true ./build-latest.sh $@ PRERELEASE=true ./build-latest.sh $@ || ERROR=1
# build all branches # build all branches
# shellcheck disable=SC2068 # shellcheck disable=SC2068
./build-branches.sh $@ ./build-branches.sh $@ || ERROR=1
# special build # special build
# shellcheck disable=SC2068 # shellcheck disable=SC2068
SRC_ORG=lampwins TAG=webhooks-backend ./build.sh "feature/webhooks-backend" $@ SRC_ORG=lampwins TAG=webhooks-backend ./build.sh "feature/webhooks-backend" $@ || ERROR=1
done done
else else
echo "❎ Not building anything." echo "❎ Not building anything."

View File

@ -12,4 +12,5 @@ BRANCHES=$($CURL "${URL_RELEASES}" | jq -r 'map(.name) | .[] | scan("^[^v].+")')
for BRANCH in $BRANCHES; do for BRANCH in $BRANCHES; do
# shellcheck disable=SC2068 # shellcheck disable=SC2068
./build.sh "${BRANCH}" $@ ./build.sh "${BRANCH}" $@
exit $?
done done

View File

@ -56,6 +56,8 @@ ALREADY_BUILT="$($CURL -H "${AUTHORIZATION_HEADER}" "${URL_DOCKERHUB_TAG}" | jq
if [ "$ALREADY_BUILT" == "false" ]; then if [ "$ALREADY_BUILT" == "false" ]; then
# shellcheck disable=SC2068 # shellcheck disable=SC2068
./build.sh "${VERSION}" $@ ./build.sh "${VERSION}" $@
exit $?
else else
echo "${DOCKER_TAG} already exists on https://hub.docker.com/r/${DOCKERHUB_REPO}" echo "${DOCKER_TAG} already exists on https://hub.docker.com/r/${DOCKERHUB_REPO}"
exit 0
fi fi