32 lines
949 B
Makefile
32 lines
949 B
Makefile
IMAGE_TAG ?= local
|
|
REGISTRY ?= gitea.wayfinderak.com
|
|
IMAGE_NAMESPACE ?= wayfinderak
|
|
IMAGE_PREFIX ?= log-guardian
|
|
IMAGE_REF ?= $(REGISTRY)/$(IMAGE_NAMESPACE)/$(IMAGE_PREFIX):$(IMAGE_TAG)
|
|
DOCKER_BUILD_FLAGS ?=
|
|
|
|
.PHONY: validate-structure go-fmt go-test docker-build ci-fast
|
|
|
|
validate-structure:
|
|
@test -f AGENTS.md
|
|
@test -f README.md
|
|
@test -f project-docs/status/phase-0-summary.md
|
|
@test -f project-docs/status/phase-0-test-results.md
|
|
@test -f project-docs/status/phase-0-open-issues.md
|
|
@test -f project-docs/status/phase-1-summary.md
|
|
@test -f project-docs/status/phase-1-test-results.md
|
|
@test -f project-docs/status/phase-1-open-issues.md
|
|
@test -f deploy/loki/docker-compose.yml
|
|
@echo "Structure validation passed"
|
|
|
|
go-fmt:
|
|
@test -z "$$(gofmt -l cmd internal)"
|
|
|
|
go-test:
|
|
go test ./...
|
|
|
|
docker-build:
|
|
docker build $(DOCKER_BUILD_FLAGS) -f docker/server.Dockerfile -t $(IMAGE_REF) .
|
|
|
|
ci-fast: validate-structure go-fmt go-test docker-build
|