mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
Use first parent commit when determining version from tags
We were having issues where an older tag was being outputed from `git describe`. From the man page: Follow only the first parent commit upon seeing a merge commit. This is useful when you wish to not match tags on branches merged in the history of the target commit.
This commit is contained in:
8
Makefile
8
Makefile
@@ -12,10 +12,10 @@ MANAGEMENT_COMMAND ?= awx-manage
|
|||||||
IMAGE_REPOSITORY_AUTH ?=
|
IMAGE_REPOSITORY_AUTH ?=
|
||||||
IMAGE_REPOSITORY_BASE ?= https://gcr.io
|
IMAGE_REPOSITORY_BASE ?= https://gcr.io
|
||||||
|
|
||||||
VERSION=$(shell git describe --long)
|
VERSION=$(shell git describe --long --first-parent)
|
||||||
VERSION3=$(shell git describe --long | sed 's/\-g.*//')
|
VERSION3=$(shell git describe --long --first-parent | sed 's/\-g.*//')
|
||||||
VERSION3DOT=$(shell git describe --long | sed 's/\-g.*//' | sed 's/\-/\./')
|
VERSION3DOT=$(shell git describe --long --first-parent | sed 's/\-g.*//' | sed 's/\-/\./')
|
||||||
RELEASE_VERSION=$(shell git describe --long | sed 's@\([0-9.]\{1,\}\).*@\1@')
|
RELEASE_VERSION=$(shell git describe --long --first-parent | sed 's@\([0-9.]\{1,\}\).*@\1@')
|
||||||
|
|
||||||
# NOTE: This defaults the container image version to the branch that's active
|
# NOTE: This defaults the container image version to the branch that's active
|
||||||
COMPOSE_TAG ?= $(GIT_BRANCH)
|
COMPOSE_TAG ?= $(GIT_BRANCH)
|
||||||
|
|||||||
Reference in New Issue
Block a user