From ca32883cacaa135c09e4b97017ba735934f54ffa Mon Sep 17 00:00:00 2001 From: Florian Brinker Date: Wed, 21 Apr 2021 23:47:57 +0200 Subject: [PATCH] Add version check --- .drone.yml | 18 +++++++++--------- build.sh | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index d829a57..ce25073 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,15 +11,15 @@ steps: - chmod +x ./build.sh - ./build.sh -#- name: docker -# image: plugins/docker -# settings: -# repo: fbrinker/tileboard -# username: -# from_secret: docker_username -# password: -# from_secret: docker_password - +- name: docker + image: plugins/docker + settings: + repo: fbrinker/tileboard + username: + from_secret: docker_username + password: + from_secret: docker_password + trigger: branch: - master \ No newline at end of file diff --git a/build.sh b/build.sh index 696f499..e923cab 100755 --- a/build.sh +++ b/build.sh @@ -34,7 +34,7 @@ if [ "$LATEST_RELEASE" = "$LATEST_TAG" ]; then echo "Tag: $LATEST_TAG" exit 78 # drone.io exit code to stop but success the pipeline fi - +exit 1 SEMVER=( ${LATEST_RELEASE//./ } ) MAJOR=${SEMVER[0]} MINOR=${SEMVER[0]}.${SEMVER[1]}