mirror of
https://github.com/luxfi/compliance.git
synced 2026-10-30 16:59:39 +00:00
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.
33 lines
746 B
Makefile
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
|