github.com/lbryio/lbcd@v0.22.119/.goreleaser.yml (about)

     1  # This is an example .goreleaser.yml file with some sensible defaults.
     2  # Make sure to check the documentation at https://goreleaser.com
     3  before:
     4    hooks:
     5      # You may remove this if you don't use go modules.
     6      - go mod tidy
     7      # you may remove this if you don't need go generate
     8      - go generate ./...
     9  builds:
    10    -
    11      main: .
    12      id: "lbcd"
    13      binary: "lbcd"
    14      env:
    15        - CGO_ENABLED=0
    16      flags:
    17        - -trimpath
    18      ldflags:
    19        - -s -w
    20        - -buildid=
    21        - -X github.com/lbryio/lbcd/version.appTag={{ .Tag }}
    22      targets:
    23        - linux_amd64
    24        - linux_arm64
    25        - darwin_amd64
    26        - darwin_arm64
    27        - windows_amd64
    28      mod_timestamp: '{{ .CommitTimestamp }}'
    29    -
    30      main: ./cmd/lbcctl
    31      id: "lbcctl"
    32      binary: "lbcctl"
    33      flags:
    34        - -trimpath
    35      ldflags:
    36        - -s -w
    37        - -buildid=
    38        - -X github.com/lbryio/lbcd/version.appTag={{ .Tag }}
    39      env:
    40        - CGO_ENABLED=0
    41      targets:
    42        - linux_amd64
    43        - linux_arm64
    44        - darwin_amd64
    45        - darwin_arm64
    46        - windows_amd64
    47      mod_timestamp: '{{ .CommitTimestamp }}'
    48  checksum:
    49    name_template: 'checksums.txt'
    50  snapshot:
    51    name_template: "{{ .Version }}+{{ .Commit }}"
    52  changelog:
    53    sort: asc
    54    filters:
    55      exclude:
    56        - '^docs:'
    57        - '^test:'
    58  
    59  dockers:
    60    - use: buildx
    61      dockerfile: Dockerfile.goreleaser
    62      image_templates:
    63      - "docker.io/lbry/lbcd:{{ .Tag }}"
    64      - "docker.io/lbry/lbcd:latest"
    65  
    66  release:
    67    draft: true
    68    prerelease: auto