forked from projectcalico/calico
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (33 loc) · 1.13 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
include ../metadata.mk
PACKAGE_NAME = github.com/projectcalico/calico/release
include ../lib.Makefile
.PHONY: build
build: bin/release
clean:
@rm -rf ./bin
@rm -rf ./output ./tmp
bin/release: $(shell find . -name "*.go")
@mkdir -p bin && \
$(call build_binary, ./build, bin/release)
###############################################################################
# CI/CD
###############################################################################
.PHONY: ci
ci: static-checks
###############################################################################
# Hashrelease
###############################################################################
hashrelease: bin/release
@ORGANIZATION=$(ORGANIZATION) \
REPO_ROOT=$(REPO_ROOT) \
IS_HASHRELEASE=true \
bin/release publish
###############################################################################
# Release
###############################################################################
.PHONY: release-notes
release-notes: bin/release var-require-all-GITHUB_TOKEN
@ORGANIZATION=$(ORGANIZATION) \
REPO_ROOT=$(REPO_ROOT) \
IS_HASHRELEASE=false \
bin/release release-notes