From 4bbd3483d5df5060478cfd1952a9e1d540f0b543 Mon Sep 17 00:00:00 2001 From: mhoennig Date: Tue, 1 Sep 2026 07:09:20 +0200 Subject: [PATCH] Werkdock builds itself: werkdock build definition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .werkator.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.werkator.yml b/.werkator.yml index e13c322..95e79ae 100644 --- a/.werkator.yml +++ b/.werkator.yml @@ -36,3 +36,14 @@ builds: - build/reports stdoutLog: build.stdout.log # filename for captured stdout 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