diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fb092b3..5703411 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,7 +7,7 @@ spec: source-ref: description: "The source branch from the Tangled monorepo to build against. Defaults to latest tagged release." type: string - default: "v1.11.0-alpha" + default: "v1.13.0-alpha" build-type: description: "The type of build to perform (e.g., 'production' for tagged releases, 'nightly' for nightly builds from the main branch and 'weekly' for weekly builds)." options: ["production", "nightly", "weekly", "merge_request"] diff --git a/bin/build b/bin/build index d3ea6b8..f4fd0e4 100755 --- a/bin/build +++ b/bin/build @@ -30,6 +30,12 @@ DOCKER_BUILDKIT=${DOCKER_BUILDKIT:-1} docker build \ --build-arg DEPLOY_IMAGE=$DEPLOY_IMAGE \ --build-arg BUILDER_IMAGE=$BUILDER_IMAGE \ . + +BUILD_STATUS=$? +if [[ "${BUILD_STATUS}" != "0" ]]; then + echo "error: Something gone wrong while building the image, see logs above for context." + exit 1 +fi if [[ $CI == "true" || "$FF_PUSH_LOCAL_BUILDS" == "true" ]]; then echo "Tagging $IMAGE_NAME:build-$TIMESTAMP for publishing"