First 8 chars

This commit is contained in:
Laszlo Fogas 2019-11-12 21:55:01 +01:00
parent 16765d939d
commit 91bece3334
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ set -x
VERSION=$DRONE_TAG
if [ -z "$VERSION" ]; then
VERSION=$DRONE_COMMIT_SHA
VERSION=${DRONE_COMMIT_SHA:0:8}
fi
echo "Building $VERSION"

View file

@ -46,7 +46,7 @@ pipeline:
commands:
- go get github.com/laszlocph/togo
- (cd web/; go generate ./...)
- sh .drone.sh
- ./.drone.sh
when:
event: [ push, tag ]