fix: no git in docker
continuous-integration/drone/tag Build was killed Details

pull/39/head
Evan Chen 2021-10-24 02:15:38 +08:00
parent 1510bea15b
commit d3c7ed256f
2 changed files with 6 additions and 1 deletions

View File

@ -5,6 +5,7 @@ steps:
- name: build
image: golang
commands:
- git tag $DRONE_TAG
- bash release.sh cmd/configui/main.go
- name: gitea_release

View File

@ -1,6 +1,10 @@
VERSION=$(git describe --tags --abbrev=0)
if [ $? -ne 0 ]; then VERSION=$DRONE_TAG; fi
BUILD=$(git rev-parse --short HEAD)
PROJ=$(basename "$(pwd)")
if [ $? -ne 0 ]; then BUILD=${DRONE_COMMIT:0:7}; fi
PROJ=configui
HUB=hub.kumoly.io
HUB_PROJECT=tools
DIST=dist