-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 979 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 979 Bytes
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
POLICY ?=
.PHONY: release
release: ## Release checks for each policy if they can be published on ghcr.io
.ci/scripts/release.bash --publish
.PHONY: test
test: ## Release checks for each policy if they can be published on ghcr.io
.ci/scripts/release.bash
.PHONY: e2e-test
e2e-test: ## Release checks for each policy if they can be published on ghcr.io
.ci/scripts/release.bash --e2e-test
.PHONY: validate-policy
## make validate-policy POLICY=policies/apm/apm-data-spec GITHUB_WORKSPACE=/tmp
validate-policy: ## Validate the given policy
.ci/scripts/release.bash --validate-policy $(POLICY)
.PHONY: apply-policy
## make apply-policy POLICY=policies/apm/apm-data-spec GITHUB_WORKSPACE=/tmp
apply-policy: ## Run the given policy
.ci/scripts/release.bash --apply-policy $(POLICY)
.PHONY: help
help: ## Show this Makefile's help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'