This repository was archived by the owner on Jul 30, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ CONTROLLER_GEN_BIN := bin/controller-gen
51
51
CONTROLLER_GEN := $(TOOLS_DIR ) /$(CONTROLLER_GEN_BIN )
52
52
GOLANGCI_LINT_BIN := bin/golangci-lint
53
53
GOLANGCI_LINT := $(TOOLS_DIR ) /$(GOLANGCI_LINT_BIN )
54
+ RELEASE_NOTES_BIN := bin/release-notes
55
+ RELEASE_NOTES := $(TOOLS_DIR ) /$(RELEASE_NOTES_BIN )
54
56
55
57
# Allow overriding manifest generation destination directory
56
58
MANIFEST_ROOT ?= "config"
@@ -175,6 +177,9 @@ RELEASE_DIR := out
175
177
$(RELEASE_DIR ) :
176
178
mkdir -p $(RELEASE_DIR ) /
177
179
180
+ $(RELEASE_NOTES ) : $(TOOLS_DIR ) /go.mod
181
+ cd $(TOOLS_DIR ) && go build -o $(RELEASE_NOTES_BIN ) -tags tools sigs.k8s.io/cluster-api/hack/tools/release
182
+
178
183
.PHONY : release
179
184
release : clean-release # # Builds and push container images using the latest git tag for the commit.
180
185
@if [ -z " ${RELEASE_TAG} " ]; then echo " RELEASE_TAG is not set" ; exit 1; fi
@@ -194,6 +199,9 @@ release-manifests: $(RELEASE_DIR) ## Builds the manifests to publish with a rele
194
199
release-staging : # # Builds and push container images to the staging bucket.
195
200
REGISTRY=$(STAGING_REGISTRY ) $(MAKE ) docker-build-all docker-push-all release-tag-latest
196
201
202
+ .PHONY : release-notes
203
+ release-notes : $(RELEASE_NOTES )
204
+ $(RELEASE_NOTES )
197
205
198
206
.PHONY : release-tag-latest
199
207
release-tag-latest : # # Adds the latest tag to the last build tag.
Original file line number Diff line number Diff line change @@ -21,5 +21,6 @@ package tools
21
21
22
22
import (
23
23
_ "github.com/golangci/golangci-lint/cmd/golangci-lint" // nolint
24
+ _ "sigs.k8s.io/cluster-api/hack/tools/release" //nolint
24
25
_ "sigs.k8s.io/controller-tools/cmd/controller-gen" // nolint
25
26
)
You can’t perform that action at this time.
0 commit comments