check / check (push) Successful in 58s
script/cibuild and script/docker were plain docker build. On an unchanged tree the lint stage and the builder stage's make test came from the layer cache, so the build reported success having linted nothing and queried no live DNS. Both scripts now pass --no-cache-filter=lint,builder, so those stages run on every build; this mirrors script/lint, which already does the same for the lint stage alone. Dependency downloads inside the disabled stages re-run, which the issue accepts. No pins, .golangci.yml, or test behaviour changed. README and TODO.md updated to match. Model: opus-4-8 (implementation); opus-5-5 (rebase)
20 lines
598 B
Bash
Executable File
20 lines
598 B
Bash
Executable File
#!/bin/sh
|
|
# script/docker: build the Docker image tagged with the project name.
|
|
# The tag comes from script/projectname.
|
|
#
|
|
# --no-cache-filter=lint,builder forces the lint stage and the builder
|
|
# stage (make test) to run on every invocation. Without it an unchanged
|
|
# tree serves them from the layer cache, producing an image whose build
|
|
# linted nothing and queried no live DNS.
|
|
set -eu
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd -P)"
|
|
ROOT="$(cd "$SCRIPT_DIR/.." && pwd -P)"
|
|
|
|
main() {
|
|
cd "$ROOT"
|
|
docker build --no-cache-filter=lint,builder -t "$("$SCRIPT_DIR/projectname")" .
|
|
}
|
|
|
|
main "$@"
|