#!/bin/sh # script/cibuild: run the CI build. The Dockerfile's lint stage runs # make fmt-check and golangci-lint; its builder stage runs make test # and make build. # # --no-cache-filter=lint,builder runs both stages on every invocation; # otherwise an unchanged tree is served from the layer cache and passes # without linting or querying live DNS. set -eu ROOT="$(cd "$(dirname "$0")/.." && pwd -P)" main() { cd "$ROOT" docker build --no-cache-filter=lint,builder . } main "$@"