--- /dev/null
+# What CI runs for this repository. Targets are stages of ./Dockerfile.
+checks: [checks] # every push: go vet and go test
+images: # main and release tags (vX.Y.Z): built and pushed as registry.home.muszr.me/<name>:<tag>
+ - {target: geoauth, name: geoauth}
# syntax=docker/dockerfile:1
#
-# geoauth: the country forward-auth for the public ingress. Built by the Tekton pipeline `geoauth` when a tag vX.Y.Z is pushed
-# to this repository; the image is registry.home.muszr.me/geoauth:vX.Y.Z.
+# geoauth: the country forward-auth for the public ingress. CI builds the targets that .ci.yaml names; a tag vX.Y.Z pushed to this
+# repository gives the image registry.home.muszr.me/geoauth:vX.Y.Z.
#
# checks go vet and go test (fails the build)
# geoauth the runtime image: a static binary and the CA bundle in scratch, no shell, no package manager, uid/gid 65532
docker build --target geoauth -t geoauth .
```
+## CI
+
+`.ci.yaml` names the Dockerfile targets that CI runs: `checks` on every push, and the `geoauth` image on `main` and on release
+tags (`git tag vX.Y.Z && git push origin vX.Y.Z`).
+
## Traefik
```yaml