Files
smallwebwaf/Makefile
T
sneak f6a15deea3 Add make publish: build the image on the Docker host and push it to the registry
script/publish runs script/docker with DOCKER_HOST set to the Docker
host (ssh://root@fsn1app1 unless set) and pushes the image to
git.eeqj.de/sneak/smallwebwaf under four tags: the UTC date as
YYYY-MM-DD, the short commit hash, the branch name and latest. It
refuses a working tree with uncommitted changes, since the hash tag
names a commit.
2026-11-09 00:30:10 +00:00

52 lines
878 B
Makefile

.PHONY: bootstrap setup test lint fmt fmt-check tidy check docker publish \
hooks build run example-app
# Makefile targets are thin shims; the implementations live in script/
# per the scripts-to-rule-them-all pattern (see the Entrypoints section
# of README.md). tidy writes go.mod and go.sum as `go mod tidy` does,
# which test checks. build and run are for working on the code by hand;
# example-app checks the image with an app built on it; publish builds
# the image on the Docker host and pushes it to the registry.
bootstrap:
@script/bootstrap
setup:
@script/setup
test:
@script/test
lint:
@script/lint
fmt:
@script/fmt
fmt-check:
@script/fmt-check
tidy:
@script/tidy
check:
@script/check
docker:
@script/docker
publish:
@script/publish
hooks:
@script/install-precommit
build:
@script/build
run:
@script/run
example-app:
@script/example-app