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
부모 9cd25b3a49
커밋 ca32883cac
2개의 변경된 파일10개의 추가작업 그리고 10개의 파일을 삭제

파일 보기

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

파일 보기

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