Add version check
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Florian Brinker 2021-04-21 23:47:57 +02:00
parent 9cd25b3a49
commit ca32883cac
2 changed files with 10 additions and 10 deletions

View File

@ -11,15 +11,15 @@ steps:
- chmod +x ./build.sh - chmod +x ./build.sh
- ./build.sh - ./build.sh
#- name: docker - name: docker
# image: plugins/docker image: plugins/docker
# settings: settings:
# repo: fbrinker/tileboard repo: fbrinker/tileboard
# username: username:
# from_secret: docker_username from_secret: docker_username
# password: password:
# from_secret: docker_password from_secret: docker_password
trigger: trigger:
branch: branch:
- master - master

View File

@ -34,7 +34,7 @@ if [ "$LATEST_RELEASE" = "$LATEST_TAG" ]; then
echo "Tag: $LATEST_TAG" echo "Tag: $LATEST_TAG"
exit 78 # drone.io exit code to stop but success the pipeline exit 78 # drone.io exit code to stop but success the pipeline
fi fi
exit 1
SEMVER=( ${LATEST_RELEASE//./ } ) SEMVER=( ${LATEST_RELEASE//./ } )
MAJOR=${SEMVER[0]} MAJOR=${SEMVER[0]}
MINOR=${SEMVER[0]}.${SEMVER[1]} MINOR=${SEMVER[0]}.${SEMVER[1]}