before: hooks: - go mod tidy builds: - env: - CGO_ENABLED=0 mod_timestamp: '{{ .CommitTimestamp }}' flags: - -trimpath ldflags: - '-s -w' - -X github.com/databricks/bricks/internal/build.buildProjectName={{ .ProjectName }} - -X github.com/databricks/bricks/internal/build.buildVersion={{ .Version }} # Git information - -X github.com/databricks/bricks/internal/build.buildBranch={{ .Branch }} - -X github.com/databricks/bricks/internal/build.buildTag={{ .Tag }} - -X github.com/databricks/bricks/internal/build.buildShortCommit={{ .ShortCommit }} - -X github.com/databricks/bricks/internal/build.buildFullCommit={{ .FullCommit }} - -X github.com/databricks/bricks/internal/build.buildCommitTimestamp={{ .CommitTimestamp }} - -X github.com/databricks/bricks/internal/build.buildSummary={{ .Summary }} # Version information - -X github.com/databricks/bricks/internal/build.buildMajor={{ .Major }} - -X github.com/databricks/bricks/internal/build.buildMinor={{ .Minor }} - -X github.com/databricks/bricks/internal/build.buildPatch={{ .Patch }} - -X github.com/databricks/bricks/internal/build.buildPrerelease={{ .Prerelease }} - -X github.com/databricks/bricks/internal/build.buildIsSnapshot={{ .IsSnapshot }} - -X github.com/databricks/bricks/internal/build.buildTimestamp={{ .Timestamp }} goos: - windows - linux - darwin goarch: - amd64 - arm64 - '386' ignore: - goos: darwin goarch: '386' - goos: linux goarch: '386' binary: '{{ .ProjectName }}' archives: - format: zip name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' checksum: name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS' algorithm: sha256 snapshot: name_template: '{{ incpatch .Version }}-devel' changelog: sort: asc filters: exclude: - '^docs:' - '^test:'