|
3 | 3 | GIT_VERSION ?= $(shell git log -1 --format="%h") |
4 | 4 | RELEASE_TAG := $(shell git describe --abbrev=0 --tags ${TAG_COMMIT} 2>/dev/null || true) |
5 | 5 | RELEASE_VERSION ?= $(shell cat VERSION) |
6 | | -IS_NEW_RELEASE ?= true |
7 | 6 |
|
8 | 7 | # are there uncommitted files? |
9 | 8 | ifneq ($(shell git status --porcelain),) |
10 | 9 | # next is used by GoReleaser as well when --spanshot is set |
11 | 10 | RELEASE_TAG := $(RELEASE_TAG)-next |
12 | 11 | RELEASE_VERSION := $(RELEASE_VERSION)-dirty |
13 | | - IS_NEW_RELEASE := false |
14 | 12 | endif |
15 | 13 |
|
16 | | -# do we consider this to be a valid new release? Or are we working going forward? |
17 | | -ifneq ($(shell git branch --show-current),master) |
18 | | - RELEASE_VERSION := $(RELEASE_VERSION)-next |
19 | | - IS_NEW_RELEASE := false |
20 | | -else |
21 | | - ifeq ($(shell git diff HEAD~1 VERSION),) |
22 | | - RELEASE_VERSION := $(RELEASE_VERSION)-next |
23 | | - IS_NEW_RELEASE := false |
24 | | - endif |
25 | | -endif |
| 14 | +# this is being kept, as in the future, we may check the diff of VERSION from the previous to determine |
| 15 | +# whether or not to cut a release, rather than relying on git tags |
| 16 | +#ifeq ($(shell git diff HEAD~1 VERSION),) |
| 17 | +# RELEASE_VERSION := $(RELEASE_VERSION)-next |
| 18 | +#endif |
26 | 19 |
|
27 | 20 | VERSION ?= $(RELEASE_VERSION) |
28 | 21 |
|
@@ -310,9 +303,6 @@ $(MANAGERLESS_DIR) $(MANAGERLESS_BASE): |
310 | 303 |
|
311 | 304 | .PHONY: semver release-clusterctl release-manifests release $(RELEASE_CLUSTERCTLYAML) $(RELEASE_MANIFEST) $(RELEASE_METADATA) $(RELEASE_CLUSTER_TEMPLATE) $(FULL_RELEASE_CLUSTERCTLYAML) |
312 | 305 |
|
313 | | -check-release: |
314 | | - @echo $(IS_NEW_RELEASE) |
315 | | - |
316 | 306 | semver: |
317 | 307 | ifeq (,$(VERSION)) |
318 | 308 | $(error could not determine version to use from file, will not create artifacts) |
|
0 commit comments