log-guardian/Makefile
WayfinderAK 6f7549d439
All checks were successful
build-image / docker (push) Successful in 53s
Implement phase 1 foundations
2026-07-03 20:14:06 -08:00

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