From 00ed64fa7cffb571270dcd0720c115963ca97a10 Mon Sep 17 00:00:00 2001 From: Alexey Golubev Date: Mon, 12 Sep 2016 19:26:54 +0300 Subject: [PATCH] Update latest tag when build from next branch release develop hotfix --- Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5908900..7b7a65c 100644 --- a/Makefile +++ b/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/" -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 += latest else