Agrega RUNBOOK.md y runbooks/ (fuera de content/, para no interferir con la publicación de Zola), con reglas de nombres/etiquetas/aislamiento de celdas mutantes verificadas por clusterlog validate. Instalación pinneada a v3.17.4 con checksum verificado (scripts/runme-install.sh), un job de CI separado (.gitea/workflows/ci.yml) que sólo corre celdas ci-safe, y la decisión documentada en docs/adr/0004-runme-sidecar.md y docs/RUNME.md. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
64 lines
1.1 KiB
Makefile
64 lines
1.1 KiB
Makefile
SHELL := /usr/bin/env bash
|
|
GO ?= go
|
|
ZOLA ?= zola
|
|
BINARY ?= bin/clusterlog
|
|
|
|
.PHONY: all build test vet e2e theme sync sync-check validate validate-local site serve smoke ci clean runme-install runme-list runme-check runme-ci
|
|
|
|
all: build
|
|
|
|
build:
|
|
mkdir -p $(dir $(BINARY))
|
|
$(GO) build -trimpath -o $(BINARY) ./cmd/clusterlog
|
|
|
|
test:
|
|
$(GO) test ./...
|
|
|
|
vet:
|
|
$(GO) vet ./...
|
|
|
|
e2e: build
|
|
./scripts/e2e-local.sh
|
|
|
|
theme:
|
|
./scripts/bootstrap-theme.sh
|
|
|
|
sync: build
|
|
./$(BINARY) --root . sync
|
|
|
|
sync-check: build
|
|
./$(BINARY) --root . sync --check
|
|
|
|
validate: build
|
|
./$(BINARY) --root . validate --require-zola
|
|
|
|
validate-local: build
|
|
./$(BINARY) --root . validate --skip-zola
|
|
|
|
site: theme sync validate
|
|
$(ZOLA) build
|
|
|
|
serve: theme sync
|
|
$(ZOLA) serve --interface 127.0.0.1
|
|
|
|
smoke: build
|
|
./scripts/smoke.sh
|
|
|
|
ci: theme test vet e2e build sync sync-check validate
|
|
$(ZOLA) build
|
|
|
|
clean:
|
|
rm -rf bin public themes/zola.386
|
|
|
|
runme-install:
|
|
./scripts/runme-install.sh
|
|
|
|
runme-list:
|
|
runme ls --filename RUNBOOK.md
|
|
|
|
runme-check: build
|
|
./scripts/runme-check.sh
|
|
|
|
runme-ci: build
|
|
runme run --filename RUNBOOK.md --tag ci-safe --all --skip-prompts
|