#!/bin/sh # script/cibuild: run the CI build. The Dockerfile runs the checks # (make fmt-check, lint, test) as build steps. This script passes a new # CHECK_EPOCH on every run, so Docker runs those steps instead of # reusing cached results: a successful run means the checks ran and # passed on this tree. Generic: needs no adaptation. The Gitea workflow # runs this on push. set -eu ROOT="$(cd "$(dirname "$0")/.." && pwd -P)" main() { cd "$ROOT" epoch="$(date +%s)$$" docker build --build-arg CHECK_EPOCH="$epoch" . } main "$@"