github.com/mborho/rem@v0.17.0/.goreleaser.yml (about)

     1  # Visit https://goreleaser.com for documentation on how to customize this
     2  # behavior.
     3  before:
     4    hooks:
     5      # this is just an example and not a requirement for provider building/publishing
     6      - go mod tidy
     7  builds:
     8  - env:
     9      # goreleaser does not work with CGO, it could also complicate
    10      # usage by users in CI/CD systems like Terraform Cloud where
    11      # they are unable to install libraries.
    12      - CGO_ENABLED=0
    13    mod_timestamp: '{{ .CommitTimestamp }}'
    14    flags:
    15      - -trimpath
    16    ldflags:
    17      - '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
    18    goos:
    19      - linux
    20      - darwin
    21      - freebsd
    22    goarch:
    23      - amd64
    24      - '386'
    25      - arm
    26      - arm64
    27    ignore:
    28      - goos: darwin
    29        goarch: 'arm'
    30      - goos: darwin
    31        goarch: 'arm64'
    32      - goos: openbsd
    33        goarch: 'arm'
    34      - goos: openbsd
    35        goarch: 'arm64'
    36      - goos: openbsd
    37        goarch: '386'
    38      - goos: freebsd
    39        goarch: 'arm64'
    40    binary: '{{ .ProjectName }}_v{{ .Version }}'
    41  archives:
    42  - format: binary
    43    name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
    44  checksum:
    45    name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
    46    algorithm: sha256
    47  signs:
    48    - artifacts: checksum
    49      args:
    50        # if you are using this is a GitHub action or some other automated pipeline, you 
    51        # need to pass the batch flag to indicate its not interactive.
    52        - "--batch"
    53        - "--local-user"
    54        - "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
    55        - "--output"
    56        - "${signature}"
    57        - "--detach-sign"
    58        - "${artifact}"
    59  release:
    60    # If you want to manually examine the release before its live, uncomment this line:
    61    # draft: true
    62  changelog:
    63    skip: true