github.com/databricks/cli@v0.203.0/.goreleaser.yaml (about)

     1  before:
     2    hooks:
     3      - go mod tidy
     4  builds:
     5  - env:
     6      - CGO_ENABLED=0
     7    mod_timestamp: '{{ .CommitTimestamp }}'
     8    flags:
     9      - -trimpath
    10    ldflags:
    11      - '-s -w'
    12      - -X github.com/databricks/cli/internal/build.buildProjectName={{ .ProjectName }}
    13      - -X github.com/databricks/cli/internal/build.buildVersion={{ .Version }}
    14  
    15      # Git information
    16      - -X github.com/databricks/cli/internal/build.buildBranch={{ .Branch }}
    17      - -X github.com/databricks/cli/internal/build.buildTag={{ .Tag }}
    18      - -X github.com/databricks/cli/internal/build.buildShortCommit={{ .ShortCommit }}
    19      - -X github.com/databricks/cli/internal/build.buildFullCommit={{ .FullCommit }}
    20      - -X github.com/databricks/cli/internal/build.buildCommitTimestamp={{ .CommitTimestamp }}
    21      - -X github.com/databricks/cli/internal/build.buildSummary={{ .Summary }}
    22  
    23      # Version information
    24      - -X github.com/databricks/cli/internal/build.buildMajor={{ .Major }}
    25      - -X github.com/databricks/cli/internal/build.buildMinor={{ .Minor }}
    26      - -X github.com/databricks/cli/internal/build.buildPatch={{ .Patch }}
    27      - -X github.com/databricks/cli/internal/build.buildPrerelease={{ .Prerelease }}
    28      - -X github.com/databricks/cli/internal/build.buildIsSnapshot={{ .IsSnapshot }}
    29      - -X github.com/databricks/cli/internal/build.buildTimestamp={{ .Timestamp }}
    30  
    31    goos:
    32      - windows
    33      - linux
    34      - darwin
    35    goarch:
    36      - amd64
    37      - arm64
    38      - '386'
    39    ignore:
    40      - goos: darwin
    41        goarch: '386'
    42      - goos: linux
    43        goarch: '386'
    44    binary: databricks
    45  archives:
    46  - format: zip
    47  
    48    # Include version in archive only for release builds and not for snapshot builds.
    49    # Snapshot archives must have a stable file name such that the artifacts in the nightly
    50    # release are automatically overwritten. If the snapshot version is included in the
    51    # file name then additional logic to clean up older builds would be needed.
    52    name_template: 'databricks_cli_{{ if not .IsSnapshot }}{{ .Version }}_{{ end }}{{ .Os }}_{{ .Arch }}'
    53  
    54  checksum:
    55    name_template: 'databricks_cli_{{ .Version }}_SHA256SUMS'
    56    algorithm: sha256
    57  snapshot:
    58    name_template: '{{ incpatch .Version }}-dev+{{ .ShortCommit }}'
    59  changelog:
    60    sort: asc
    61    filters:
    62      exclude:
    63      - '^docs:'
    64      - '^test:'