Przeglądaj źródła

VERSION from ENV should always take precedence over CI tags

max furman 5 lat temu
rodzic
commit
78c15805f4
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      Makefile

+ 2 - 2
Makefile

@@ -38,7 +38,7 @@ bootstra%:
 
 
 # If TRAVIS_TAG is set then we know this ref has been tagged.
 # If TRAVIS_TAG is set then we know this ref has been tagged.
 ifdef TRAVIS_TAG
 ifdef TRAVIS_TAG
-VERSION := $(TRAVIS_TAG)
+VERSION ?= $(TRAVIS_TAG)
 NOT_RC  := $(shell echo $(VERSION) | grep -v -e -rc)
 NOT_RC  := $(shell echo $(VERSION) | grep -v -e -rc)
 	ifeq ($(NOT_RC),)
 	ifeq ($(NOT_RC),)
 PUSHTYPE := release-candidate
 PUSHTYPE := release-candidate
@@ -47,7 +47,7 @@ PUSHTYPE := release
 	endif
 	endif
 # GITHUB Actions
 # GITHUB Actions
 else ifdef GITHUB_REF
 else ifdef GITHUB_REF
-VERSION := $(shell echo $(GITHUB_REF) | sed 's/^refs\/tags\///')
+VERSION ?= $(shell echo $(GITHUB_REF) | sed 's/^refs\/tags\///')
 NOT_RC  := $(shell echo $(VERSION) | grep -v -e -rc)
 NOT_RC  := $(shell echo $(VERSION) | grep -v -e -rc)
 	ifeq ($(NOT_RC),)
 	ifeq ($(NOT_RC),)
 PUSHTYPE := release-candidate
 PUSHTYPE := release-candidate