2026-03-21 23:27:39 +00:00
|
|
|
IMAGE_REGISTRY ?= 92.205.130.254:32166
|
2026-05-24 17:17:37 +02:00
|
|
|
IMAGE_REPO ?= coulomb/key-cape
|
2026-03-21 23:27:39 +00:00
|
|
|
IMAGE_TAG ?= latest
|
|
|
|
|
IMAGE := $(IMAGE_REGISTRY)/$(IMAGE_REPO):$(IMAGE_TAG)
|
|
|
|
|
|
2026-10-28 09:50:54 +01:00
|
|
|
.PHONY: dev seed build test lint contract-test image push image-tag tokenstatus-export tokenstatus-check identity-facts
|
2026-08-23 13:10:13 +02:00
|
|
|
|
|
|
|
|
PLAYBOOK_VALIDATOR ?= ../net-kingdom/tools/playbook-capability-contract/playbook_contract_validator.py
|
2026-03-13 02:18:36 +01:00
|
|
|
|
|
|
|
|
dev:
|
|
|
|
|
docker compose -f docker-compose.dev.yml up
|
|
|
|
|
|
|
|
|
|
seed:
|
|
|
|
|
docker compose -f docker-compose.dev.yml exec lldap /scripts/seed.sh
|
|
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
cd src && go build ./...
|
|
|
|
|
|
2026-10-18 11:36:26 +02:00
|
|
|
test: tokenstatus-check
|
2026-03-13 02:18:36 +01:00
|
|
|
cd src && go test ./...
|
|
|
|
|
|
2026-10-18 11:36:26 +02:00
|
|
|
tokenstatus-export:
|
|
|
|
|
python3 tools/export_tokenstatus_client.py
|
|
|
|
|
|
|
|
|
|
tokenstatus-check:
|
|
|
|
|
python3 tools/export_tokenstatus_client.py --check
|
|
|
|
|
|
2026-10-28 09:50:54 +01:00
|
|
|
# KEY-WP-0045: value-safe identity facts for NetKingdom's service-identity check.
|
|
|
|
|
IDENTITY_CONFIG ?= config/service-clients.example.yaml
|
|
|
|
|
identity-facts:
|
|
|
|
|
@cd src && go run ./cmd/keycape identity-facts --config $(abspath $(IDENTITY_CONFIG))
|
|
|
|
|
|
2026-03-13 02:18:36 +01:00
|
|
|
lint:
|
|
|
|
|
cd src && go vet ./...
|
2026-03-21 23:27:39 +00:00
|
|
|
|
2026-08-23 13:10:13 +02:00
|
|
|
contract-test:
|
|
|
|
|
python3 $(PLAYBOOK_VALIDATOR) capabilities/playbooks/*.yaml
|
|
|
|
|
|
2026-03-21 23:27:39 +00:00
|
|
|
image:
|
|
|
|
|
docker build -t $(IMAGE) .
|
|
|
|
|
|
|
|
|
|
push: image
|
|
|
|
|
docker push $(IMAGE)
|
|
|
|
|
|
|
|
|
|
image-tag:
|
|
|
|
|
docker tag $(IMAGE) $(IMAGE_REGISTRY)/$(IMAGE_REPO):$(IMAGE_TAG)
|
2026-10-19 13:15:16 +02:00
|
|
|
|
|
|
|
|
# CUST-WP-0079-T05: staged-source generation; hook uses the isolated recipe.
|
|
|
|
|
.PHONY: generated-work-records generated-work-records-check
|
|
|
|
|
generated-work-records:
|
|
|
|
|
$(MAKE) --no-print-directory -f .generated-work-records.mk generated-work-records
|
|
|
|
|
generated-work-records-check:
|
|
|
|
|
$(MAKE) --no-print-directory -f .generated-work-records.mk generated-work-records-check
|