travis: Use short commit notation

This commit is contained in:
Alexey Rogachevskiy
2020-08-10 00:19:05 +03:00
parent fa44e4b42f
commit 3460fec25e

View File

@@ -7,7 +7,7 @@ env:
global:
- DOCKER="sfalexrog/img-tool:qemu-update"
- TARGET_REPO="https://github.com/${TRAVIS_REPO_SLUG}.git"
- IMAGE_VERSION=${TRAVIS_TAG:-${TRAVIS_COMMIT}}
- IMAGE_VERSION=${TRAVIS_TAG:-${TRAVIS_COMMIT:0:7}}
- IMAGE_NAME="$(basename -s '.git' ${TARGET_REPO})_${IMAGE_VERSION}.img"
git:
depth: 50