summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9dc8842..a0b4653 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD | sed 's/\//_/g')
IMAGE_TAG := $(PROJECT_NAME):$(GIT_BRANCH)
AUTHZD_BIN := bin/authzd
SPARKLED_BIN := bin/sparkled
+ZED_CMD = go tool godotenv -f .env.local,.env go tool zed --insecure
.PHONY: clean setup build test run
@@ -25,7 +26,7 @@ setup:
@if command -v brew >/dev/null 2>&1; then \
brew bundle; \
fi
- @@mise exec python -- pip install dumb-init
+ @mise exec python -- pip install dumb-init
build: $(AUTHZD_BIN) $(SPARKLED_BIN)
@@ -51,6 +52,7 @@ run-image: clean build-image
lint:
@go tool yamlfmt --lint -exclude vendor .
+ @$(ZED_CMD) validate etc/authzd/spice.schema
tidy:
@go get -u ./...
@@ -58,5 +60,8 @@ tidy:
@go mod vendor
@go tool yamlfmt -exclude vendor .
-load-schema:
- @go tool godotenv -f .env.local,.env go tool zed --insecure schema write etc/authzd/spice.schema
+db-schema-load:
+ @$(ZED_CMD) schema write etc/authzd/spice.schema
+
+db-schema:
+ @$(ZED_CMD) schema read