build: Debug exit behaviour
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Danny Bessems 2023-07-13 10:42:53 +02:00
parent cbd981cf19
commit c61bc4fc8d
1 changed files with 4 additions and 4 deletions

View File

@ -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
- |