Files
compliance/Makefile
zeekay bae914d211 feat: standalone compliance server, Dockerfile, and build tooling
HTTP server (cmd/complianced) exposing all compliance APIs: KYC
verification, application lifecycle, AML screening, transaction
monitoring, payment validation, and regulatory lookups. Multi-stage
Dockerfile for linux/amd64. Makefile with test-race and docker targets.
2025-12-22 13:45:18 -08:00

33 lines
746 B
Makefile

.PHONY: build run test test-race lint docker docker-push tag clean
VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)
build:
go build -ldflags="-s -w -X main.version=$(VERSION)" -o complianced ./cmd/complianced/
run: build
./complianced
test:
go test -count=1 ./...
test-race:
go test -race -count=1 ./...
lint:
go vet ./...
docker:
docker build --platform linux/amd64 -t ghcr.io/luxfi/compliance:$(VERSION) -t ghcr.io/luxfi/compliance:latest .
docker-push:
docker push ghcr.io/luxfi/compliance:$(VERSION)
docker push ghcr.io/luxfi/compliance:latest
tag:
@echo "Current version: $(VERSION)"
@echo "Usage: git tag -a v0.X.0 -m 'release v0.X.0' && git push origin v0.X.0"
clean:
rm -f complianced