mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
Merge pull request #64 from cloudflare/reorder-version
Put the branch name first on the version string for docker master builds
This commit is contained in:
@@ -13,7 +13,7 @@ else
|
||||
# for everything else generate version from branch name and git tag/commit
|
||||
# it would be best to use SOURCE_COMMIT here, but it doesn't work
|
||||
# see https://github.com/docker/hub-feedback/issues/600
|
||||
VERSION=$(git describe --tags --always)-${SOURCE_BRANCH}
|
||||
VERSION=${SOURCE_BRANCH}-$(git describe --always)
|
||||
fi
|
||||
|
||||
docker build --build-arg VERSION=${VERSION} -t ${IMAGE_NAME} .
|
||||
|
||||
Reference in New Issue
Block a user