File tree Expand file tree Collapse file tree 2 files changed +45
-1
lines changed Expand file tree Collapse file tree 2 files changed +45
-1
lines changed Original file line number Diff line number Diff line change @@ -572,7 +572,7 @@ release-manifests: ## Release manifest files
572
572
573
573
.PHONY : release-changelog
574
574
release-changelog : $(GH ) # # Generates release notes using Github release notes.
575
- ./hack/releasechangelog.sh > $(RELEASE_DIR ) /CHANGELOG.md
575
+ ./hack/releasechangelog.sh -v $( VERSION ) -p $( PREVIOUS_VERSION ) -o $( GH_ORG_NAME ) -r $( GH_REPO_NAME ) -c $( CORE_CONTROLLER_PROMOTED_IMG ) > $(RELEASE_DIR ) /CHANGELOG.md
576
576
577
577
.PHONY : release-binaries
578
578
release-binaries : # # Builds the binaries to publish with a release
Original file line number Diff line number Diff line change @@ -17,6 +17,50 @@ set -o errexit
17
17
set -o nounset
18
18
set -o pipefail
19
19
20
+ function show_help()
21
+ {
22
+ cat << EOF
23
+ Usage: ${0##*/ } -v VERSION -p PREVIOUS_VERSION -o GH_ORG_NAME -r GH_REPO_NAME -c CORE_CONTROLLER_PROMOTED_IMG
24
+
25
+ This generates the release notes for the new CAPA version being released.
26
+
27
+ Required Arguments:
28
+ -v VERSION Version of the Cluster API Provider AWS (CAPA) being released
29
+ -p PREVIOUS_VERSION Current CAPA version previously released
30
+ -o GH_ORG_NAME GitHub organization name
31
+ -r GH_REPO_NAME GitHub repository name
32
+ -c CORE_CONTROLLER_PROMOTED_IMG Image used for this release
33
+ EOF
34
+ }
35
+
36
+ while getopts " v:p:o:r:c:h" opt; do
37
+ case $opt in
38
+ v)
39
+ VERSION=${OPTARG}
40
+ ;;
41
+ p)
42
+ PREVIOUS_VERSION=${OPTARG}
43
+ ;;
44
+ o)
45
+ GH_ORG_NAME=${OPTARG}
46
+ ;;
47
+ r)
48
+ GH_REPO_NAME=${OPTARG}
49
+ ;;
50
+ c)
51
+ CORE_CONTROLLER_PROMOTED_IMG=${OPTARG}
52
+ ;;
53
+ h)
54
+ show_help
55
+ exit 0
56
+ ;;
57
+ * )
58
+ show_help >&2
59
+ exit 1
60
+ ;;
61
+ esac
62
+ done
63
+
20
64
echo " # Release notes for Cluster API Provider AWS (CAPA) $VERSION "
21
65
echo " [Documentation](https://cluster-api-aws.sigs.k8s.io/)"
22
66
echo " # Changelog since $PREVIOUS_VERSION "
You can’t perform that action at this time.
0 commit comments