Werkdock builds itself: werkdock build definition
A second named build beside the default: gofmt gate, go vet, go test, and the static binary as the artifact (werkdock/dist). Verified locally end to end and via config:print. Expected red on the webspace instance until the trixie rootfs learns the go toolchain — that image extension (Go + Node, roadmap step 2 of plan 21) is the follow-up. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
67e5b120e7
commit
4bbd3483d5
@@ -36,3 +36,14 @@ builds:
|
|||||||
- build/reports
|
- build/reports
|
||||||
stdoutLog: build.stdout.log # filename for captured stdout
|
stdoutLog: build.stdout.log # filename for captured stdout
|
||||||
stderrLog: build.stderr.log # filename for captured stderr
|
stderrLog: build.stderr.log # filename for captured stderr
|
||||||
|
|
||||||
|
# Werkdock builds itself: the Go module in werkdock/ (plan step 21).
|
||||||
|
# The first gofmt call prints any unformatted files, the second fails
|
||||||
|
# the build on them. Needs the go toolchain in the build environment.
|
||||||
|
werkdock:
|
||||||
|
trigger:
|
||||||
|
onPush: true
|
||||||
|
cleanCommand: rm -rf werkdock/dist
|
||||||
|
buildCommand: cd werkdock && gofmt -l . && test -z "$(gofmt -l .)" && go vet ./... && go test ./... && CGO_ENABLED=0 go build -o dist/werkdock .
|
||||||
|
artifactDirs:
|
||||||
|
- werkdock/dist
|
||||||
|
|||||||
Reference in New Issue
Block a user