-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
49 lines (40 loc) · 995 Bytes
/
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
release_name:=dnsbl-exporter-dev
namespace:=test
.PHONY: build
build:
goreleaser build --snapshot --single-target --clean
.PHONY: clean
clean:
rm -rf dist/
rm ./chart/*.tgz
.PHONY: run-dev
run-dev:
go run dnsbl_exporter.go \
--log.debug \
--config.dns-resolver 0.0.0.0:15353
.PHONY: run-dev-domain
run-dev-domain:
go run dnsbl_exporter.go \
--log.debug \
--config.rbls ./rbls-domain.ini \
--config.domain-based \
--config.dns-resolver 0.0.0.0:15353
.PHONY: snapshot
snapshot:
goreleaser build --snapshot --clean
.PHONY: test
test:
act "pull_request"
.PHOMY: test-deploy-helm
test-deploy-helm:
helm upgrade --install --namespace $(namespace) \
-f ./chart/values.yaml -f ./chart/values.dev.yml -f ./chart/values.domain-based.yaml \
$(release_name) ./chart
.PHONY: test-undeploy-helm
test-undeploy-helm:
helm uninstall -n $(namespace) $(release_name)
.PHONY: build-unbound
build-unbound:
docker build \
-t ghcr.io/luzilla/unbound:dev \
.docker/unbound/rootfs