From c61bc4fc8d98e75ef6fc935093ca5f80917dcdac Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Thu, 13 Jul 2023 10:42:53 +0200 Subject: [PATCH] build: Debug exit behaviour --- .drone.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 76f45d3..b4f4b02 100644 --- a/.drone.yml +++ b/.drone.yml @@ -48,7 +48,7 @@ steps: pull: always commands: - | - export IMAGE_TAG=$(cat .version) && [ -n "$IMAGE_TAG" ] || { exit 0 } + export IMAGE_TAG=$(cat .version) && [ -n "$IMAGE_TAG" ] || { echo 'No release tag - exiting'; exit 0 } - | wget https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64 -qO /bin/jq chmod +x /bin/jq @@ -73,7 +73,7 @@ steps: pull: always commands: - | - export IMAGE_TAG=$(cat .version) && [ -n "$IMAGE_TAG" ] || { exit 0 } + export IMAGE_TAG=$(cat .version) && [ -n "$IMAGE_TAG" ] || { echo 'No release tag - exiting'; exit 0 } - | wget https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64 -qO /bin/jq chmod +x /bin/jq @@ -98,7 +98,7 @@ steps: pull: always commands: - | - export CHART_VERSION=$(cat .version) && [ -n "$CHART_VERSION" ] || { exit 0 } + export CHART_VERSION=$(cat .version) && [ -n "$CHART_VERSION" ] || { echo 'No release tag - exiting'; exit 0 } sed -i 's/{{ chart_version }}/'$CHART_VERSION'/g' charts/json-server/Chart.yaml sed -i 's/tag: latest/tag: '$CHART_VERSION'/g' charts/json-server/values.yaml - | @@ -129,7 +129,7 @@ steps: pull: always commands: - | - export VALID_TAG=$(cat .version) && [ -n "$VALID_TAG" ] || { exit 0 } + export VALID_TAG=$(cat .version) && [ -n "$VALID_TAG" ] || { echo 'No release tag - exiting'; exit 0 } - | apt-get update - |