Update latest tag when build from next branch

release
develop
hotfix
This commit is contained in:
Alexey Golubev 2016-09-12 19:26:54 +03:00 committed by GitHub
parent 6a8bdfe6ba
commit 00ed64fa7c

View file

@ -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