-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
54 lines (46 loc) · 1.24 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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)