-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
38 lines (29 loc) · 1.21 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
INGRESS_DOMAIN ?= example.com
PROXY ?= ""
.PHONY: bazel-target-list
bazel-target-list: ## List bazel targets
bazel query '...'
.PHONY: run-linux-bin
run-linux-bin: ## Run linux go binary
bazel run //cmd/rproxy:rproxy --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 --verbose_failures
.PHONY: run-macos-bin
run-macos-bin: ## Run macos go binary
bazel run //cmd/rproxy:rproxy --verbose_failures
.PHONY: build-image
build-image: ## Build docker image
bazel run //cmd/rproxy:bundle --verbose_failures
.PHONY: push-image
push-image: ## Push docker image
bazel run //cmd/rproxy:push --verbose_failures
.PHONY: check-yaml
check-yaml: ## Check k8s yaml
bazel run //cmd/rproxy:k8s --define ingress_domain=$(INGRESS_DOMAIN) --define proxy=$(PROXY) --verbose_failures
.PHONY: apply-yaml
apply-yaml: ## Apply k8s yaml
bazel run //cmd/rproxy:k8s.apply --define ingress_domain=$(INGRESS_DOMAIN) --define proxy=$(PROXY) --verbose_failures
.PHONY: print-workspace-status
print-workspace-status: ## Print workspace status
hack/print-workspace-status.sh
.PHONY: help
help: ## List commands
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-50s\033[0m %s\n", $$1, $$2}'