check / check (push) Successful in 45s
Root make check, and with it the pre-commit hook, now gates the Go backend too. The backend's Makefile targets are shims over backend/script/*; script/cibuild builds both images and is the workflow's only build step. The root make lint runs golangci-lint only in Docker, by building the lint stage of Dockerfile.backend without the cache; the .golangci.yml drift check moved into backend/script/lint. script/bootstrap installs no linter: it reuses a Go at least as new as backend/go.mod asks for, otherwise installs the pinned, hash-verified release, and links what it installs into ~/.local/bin without replacing anything it did not create. The backend version falls back to dev when VERSION is unset or empty. Model: opus-5-5
18 lines
498 B
Bash
Executable File
18 lines
498 B
Bash
Executable File
#!/bin/sh
|
|
# script/docker: build both Docker images, tagged with the project name
|
|
# from script/projectname: the frontend as <name>, from Dockerfile, and
|
|
# the backend as <name>-server, from Dockerfile.backend.
|
|
set -eu
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd -P)"
|
|
ROOT="$(cd "$SCRIPT_DIR/.." && pwd -P)"
|
|
|
|
main() {
|
|
cd "$ROOT"
|
|
name="$("$SCRIPT_DIR/projectname")"
|
|
timeout 300 docker build -t "$name" .
|
|
timeout 300 docker build -t "$name-server" -f Dockerfile.backend .
|
|
}
|
|
|
|
main "$@"
|