check / check (push) Successful in 3m38s
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.
60 lines
1.1 KiB
Makefile
60 lines
1.1 KiB
Makefile
.PHONY: bootstrap setup test lint fmt fmt-check tidy check docker publish \
|
|
hooks build run example-app gitea-requests gitea-setup
|
|
|
|
# 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; gitea-requests
|
|
# reports the gitea requests the Core Rule Set refuses at the defaults;
|
|
# gitea-setup checks the setup in deploy/gitea; 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
|
|
|
|
gitea-requests:
|
|
@script/gitea-requests
|
|
|
|
gitea-setup:
|
|
@script/gitea-setup
|