#!/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 forces both of those stages to run on # every invocation. Without it an unchanged tree serves them from the # layer cache, reporting success having linted nothing and queried no # live DNS. A successful build then implies those stages actually ran. set -eu ROOT="$(cd "$(dirname "$0")/.." && pwd -P)" main() { cd "$ROOT" docker build --no-cache-filter=lint,builder . } main "$@"