fix: no git in docker
continuous-integration/drone/tag Build was killed
Details
continuous-integration/drone/tag Build was killed
Details
parent
1510bea15b
commit
d3c7ed256f
|
@ -5,6 +5,7 @@ steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
|
- git tag $DRONE_TAG
|
||||||
- bash release.sh cmd/configui/main.go
|
- bash release.sh cmd/configui/main.go
|
||||||
|
|
||||||
- name: gitea_release
|
- name: gitea_release
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
|
|
||||||
VERSION=$(git describe --tags --abbrev=0)
|
VERSION=$(git describe --tags --abbrev=0)
|
||||||
|
if [ $? -ne 0 ]; then VERSION=$DRONE_TAG; fi
|
||||||
BUILD=$(git rev-parse --short HEAD)
|
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=hub.kumoly.io
|
||||||
HUB_PROJECT=tools
|
HUB_PROJECT=tools
|
||||||
DIST=dist
|
DIST=dist
|
||||||
|
|
Loading…
Reference in New Issue