-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
62 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
.DEFAULT_GOAL := all | ||
|
||
.PHONY: all | ||
all: fmt lint cve-check test build | ||
|
||
.PHONY: fmt | ||
fmt: | ||
$(MAKE) -C aws fmt | ||
$(MAKE) -C azure fmt | ||
|
||
.PHONY: lint | ||
lint: | ||
$(MAKE) -C aws lint | ||
$(MAKE) -C azure lint | ||
|
||
.PHONY: cve-check | ||
cve-check: | ||
$(MAKE) -C aws cve-check | ||
$(MAKE) -C azure cve-check | ||
|
||
.PHONY: test | ||
test: | ||
$(MAKE) -C aws test | ||
$(MAKE) -C azure test | ||
|
||
.PHONY: build | ||
build: | ||
$(MAKE) -C aws build | ||
$(MAKE) -C azure build | ||
|
||
.PHONY: update-dependencies | ||
update-dependencies: | ||
$(MAKE) -C aws update-dependencies | ||
$(MAKE) -C azure update-dependencies | ||
|
||
# usage make version=1.0.0 release | ||
# | ||
# manually executing goreleaser: | ||
# export GITHUB_TOKEN=xyz | ||
# export AUR_SSH_PRIVATE_KEY=$(cat /path/to/id_aur) | ||
# export KAFKACTL_VERSION=v5.1.0 | ||
# docker login | ||
# goreleaser --clean (--skip-validate) | ||
# | ||
.PHONY: release | ||
release: | ||
current_date=`date "+%Y-%m-%d"`; eval "sed -i 's/## \[Unreleased\].*/## [Unreleased]\n\n## $$version - $$current_date/g' aws/CHANGELOG.md" | ||
git add "aws/CHANGELOG.md" | ||
current_date=`date "+%Y-%m-%d"`; eval "sed -i 's/## \[Unreleased\].*/## [Unreleased]\n\n## $$version - $$current_date/g' azure/CHANGELOG.md" | ||
git add "azure/CHANGELOG.md" | ||
git commit -m "releases $(version)" | ||
git tag -a v$(version) -m "release v$(version)" | ||
git push origin | ||
git push origin v$(version) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters