From b9993fca6137682ff0254465185636e0edc3f3e3 Mon Sep 17 00:00:00 2001 From: Andrei Jiroh Halili Date: Wed, 29 Apr 2026 18:09:15 +0000 Subject: [PATCH] ci(gitlab-ci): sync tangled knotserver release at CI config side Also improve build script debugging by aborting push when build is failed. Signed-off-by: Andrei Jiroh Halili --- .gitlab-ci.yml | 2 +- bin/build | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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" -- 2.51.2