# Werkator CI configuration for Werkdock (built by https://werkator.javagil.de). # Reference: https://github.com/mhoennig/werkator/blob/main/docs/configuration.md # # Werkdock lived in the Werkator repository until the extraction (plan step 21, # session E); its build definition moved here unchanged, minus the werkdock/ # path prefix it needed as a subdirectory. werkator: version: since: "1.0.1" gitea: baseUrl: https://git.javagil.de owner: mi repo: werkdock statusContext: werkator artifacts: retentionPerBranch: 3 watcher: newBranchMaxAge: 5d builds: # One build: the Go module at the repository root. The first gofmt call # prints any unformatted files, the second fails the build on them. # Needs the go toolchain in the build environment. default: trigger: onPush: true cleanCommand: rm -rf dist buildCommand: gofmt -l . && test -z "$(gofmt -l .)" && go vet ./... && go test ./... && CGO_ENABLED=0 go build -o dist/werkdock . artifactDirs: - dist stdoutLog: build.stdout.log stderrLog: build.stderr.log