Files
ai-disclosure-standard/Makefile
T
jbergner b8d3a6092a
release-tag / release-image (push) Successful in 2m0s
OV
2026-07-24 07:31:19 +02:00

32 lines
911 B
Makefile

.PHONY: run test test-license-client check build docker-build docker-build-bulk docker-build-all
VERSION ?= 2.0.0
run:
go run ./cmd/server
test:
go test ./...
cd third_party/license-platform-client && go test ./...
test-license-client:
cd third_party/license-platform-client && go test ./...
check:
gofmt -w $$(find cmd internal web third_party/license-platform-client -name '*.go' -type f)
go vet ./...
go test -race ./...
cd third_party/license-platform-client && go vet ./... && go test -race ./...
build:
mkdir -p bin
CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o bin/ai-disclosure ./cmd/server
docker-build:
docker build --build-arg VERSION=$(VERSION) -t ai-disclosure-standard:$(VERSION)-local .
docker-build-bulk:
docker build -f Dockerfile.bulk --build-arg VERSION=$(VERSION) -t ai-disclosure-standard-bulk:$(VERSION)-local .
docker-build-all: docker-build docker-build-bulk