-
Notifications
You must be signed in to change notification settings - Fork 41
/
Makefile
46 lines (35 loc) · 1.34 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
# Default to podman
CONTAINER_RUNTIME ?= podman
.PHONY: metricsdocs
metricsdocs: build-metricsdocs
@[ "${CONFIG_FILE}" ] || ( echo "CONFIG_FILE is not set"; exit 1 )
tools/metricsdocs/_out/metricsdocs \
--config-file $(CONFIG_FILE)
.PHONY: build-metricsdocs
build-metricsdocs:
cd ./tools/metricsdocs && go build -ldflags="-s -w" -o _out/metricsdocs .
.PHONY: promlinter-build
promlinter-build:
${CONTAINER_RUNTIME} build -t ${IMG} test/metrics/prom-metrics-linter
.PHONY: promlinter-push
promlinter-push:
${CONTAINER_RUNTIME} push ${IMG}
.PHONY: monitoringlinter-unit-test
monitoringlinter-unit-test:
cd monitoringlinter && go test ./...
.PHONY: monitoringlinter-build
monitoringlinter-build:
cd monitoringlinter && go build ./cmd/monitoringlinter
.PHONY: monitoringlinter-test
monitoringlinter-test: monitoringlinter-build
cd monitoringlinter && ./tests/e2e.sh
.PHONY: lint-markdown
lint-markdown:
echo "Linting markdown files"
podman run -v ${PWD}:/workdir:Z docker.io/davidanson/markdownlint-cli2:v0.13.0 "/workdir/docs/*runbooks/*.md"
.PHONY: build-runbook-sync-downstream
build-runbook-sync-downstream:
cd tools/runbook-sync-downstream && go build -ldflags="-s -w" -o _out/runbook-sync-downstream .
.PHONY: runbook-sync-downstream
runbook-sync-downstream: build-runbook-sync-downstream
tools/runbook-sync-downstream/_out/runbook-sync-downstream