Update latest tag when build from next branch
release develop hotfix
This commit is contained in:
parent
6a8bdfe6ba
commit
00ed64fa7c
16
Makefile
16
Makefile
@ -2,7 +2,21 @@ PACKAGE_VERSION := $(PRODUCT_VERSION)-$(BUILD_NUMBER)
|
|||||||
|
|
||||||
REPO_URL := "deb http://repo-doc-onlyoffice-com.s3.amazonaws.com/ubuntu/trusty/$(COMPANY_NAME)-$(PRODUCT_NAME)/$(GIT_BRANCH)/$(PACKAGE_VERSION)/ repo/"
|
REPO_URL := "deb http://repo-doc-onlyoffice-com.s3.amazonaws.com/ubuntu/trusty/$(COMPANY_NAME)-$(PRODUCT_NAME)/$(GIT_BRANCH)/$(PACKAGE_VERSION)/ repo/"
|
||||||
|
|
||||||
ifeq ($(GIT_BRANCH), origin/develop)
|
UPDATE_LATEST := false
|
||||||
|
|
||||||
|
ifneq(,$(findstring develop,$(GIT_BRANCH)))
|
||||||
|
UPDATE_LATEST := true
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq(,$(findstring release,$(GIT_BRANCH)))
|
||||||
|
UPDATE_LATEST := true
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq(,$(findstring hotfix,$(GIT_BRANCH)))
|
||||||
|
UPDATE_LATEST := true
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(UPDATE_LATEST), true)
|
||||||
DOCKER_TAGS += $(subst -,.,$(PACKAGE_VERSION))
|
DOCKER_TAGS += $(subst -,.,$(PACKAGE_VERSION))
|
||||||
DOCKER_TAGS += latest
|
DOCKER_TAGS += latest
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user