@@ -503,6 +503,10 @@ check-release-tag: ## Check if the release tag is set
503
503
@if [ -z " ${RELEASE_TAG} " ]; then echo " RELEASE_TAG is not set" ; exit 1; fi
504
504
@if ! [ -z " $$ (git status --porcelain)" ]; then echo " Your local git repository contains uncommitted changes, use git clean before proceeding." ; exit 1; fi
505
505
506
+ .PHONY : check-release-branch
507
+ check-release-branch : # # Check if the release branch is set
508
+ @if [ -z " ${RELEASE_BRANCH} " ]; then echo " RELEASE_BRANCH is not set" ; exit 1; fi
509
+
506
510
.PHONY : compiled-manifest
507
511
compiled-manifest : $(RELEASE_DIR ) $(KUSTOMIZE ) # # Compile the manifest files
508
512
$(MAKE ) image-patch-source-manifest
@@ -563,7 +567,7 @@ list-image: ## List images for RELEASE_TAG
563
567
gcloud container images list-tags $(STAGING_REGISTRY ) /$(IMAGE ) --filter=" tags=('$( RELEASE_TAG) ')" --format=json
564
568
565
569
.PHONY : release
566
- release : clean-release check-release-tag $(RELEASE_DIR ) $(GORELEASER ) # # Builds and push container images using the latest git tag for the commit.
570
+ release : clean-release check-release-tag check-release-branch $(RELEASE_DIR ) $(GORELEASER ) # # Builds and push container images using the latest git tag for the commit.
567
571
git checkout " ${RELEASE_TAG} "
568
572
$(MAKE ) release-changelog
569
573
CORE_CONTROLLER_IMG=$(PROD_REGISTRY ) /$(CORE_IMAGE_NAME ) $(MAKE ) release-manifests
@@ -595,7 +599,7 @@ release-manifests: ## Release manifest files
595
599
596
600
.PHONY : release-changelog
597
601
release-changelog : $(RELEASE_NOTES ) check-release-tag check-previous-release-tag check-github-token $(RELEASE_DIR )
598
- $(RELEASE_NOTES ) --debug --org $(GH_ORG_NAME ) --repo $(GH_REPO_NAME ) --start-sha $(shell git rev-list -n 1 ${PREVIOUS_VERSION}) --end-sha $(shell git rev-list -n 1 ${RELEASE_TAG}) --output $(RELEASE_DIR ) /CHANGELOG.md --go-template go-template:$(REPO_ROOT ) /hack/changelog.tpl --dependencies=false
602
+ $(RELEASE_NOTES ) --debug --org $(GH_ORG_NAME ) --repo $(GH_REPO_NAME ) --start-sha $(shell git rev-list -n 1 ${PREVIOUS_VERSION}) --end-sha $(shell git rev-list -n 1 ${RELEASE_TAG}) --output $(RELEASE_DIR ) /CHANGELOG.md --go-template go-template:$(REPO_ROOT ) /hack/changelog.tpl --dependencies=false --branch= ${RELEASE_BRANCH} --required-author= " "
599
603
600
604
.PHONY : promote-images
601
605
promote-images : $(KPROMO ) $(YQ )
0 commit comments