1# goreleaser.yml
2# Release automation
3#
4# Build customization
5project_name: gopass
6
7before:
8  hooks:
9    - make clean
10    - make completion
11    - go mod download
12
13builds:
14  - id: gopass
15    binary: gopass
16    flags:
17      - -trimpath
18      - -tags=netgo
19    env:
20      - CGO_ENABLED=0
21    asmflags:
22      - all=-trimpath={{.Env.GOPATH}}
23    gcflags:
24      - all=-trimpath={{.Env.GOPATH}}
25    ldflags: |
26      -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -extldflags '-static'
27    goos:
28      - darwin
29      - freebsd
30      - linux
31      - openbsd
32      - windows
33    goarch:
34      - amd64
35      - arm
36      - arm64
37    goarm:
38      - 6
39      - 7
40    mod_timestamp: '{{ .CommitTimestamp }}'
41archives:
42  - id: gopass
43    name_template: "{{.Binary}}-{{.Version}}-{{.Os}}-{{.Arch}}{{ if .Arm }}v{{.Arm }}{{ end }}"
44    format: tar.gz
45    format_overrides:
46      - goos: windows
47        format: zip
48    files:
49      - CHANGELOG.md
50      - LICENSE
51      - README.md
52      - bash.completion
53      - fish.completion
54      - zsh.completion
55
56release:
57  github:
58    owner: gopasspw
59    name: gopass
60  draft: false
61  prerelease: auto
62
63nfpms:
64  - id: gopass
65    vendor: Gopass Authors
66    homepage: "https://www.gopass.pw"
67    maintainer: "Gopass Authors <gopass@gopass.pw>"
68    license: MIT
69    formats:
70      - deb
71      - rpm
72    dependencies:
73      - git
74      - gnupg2
75    recommends:
76      - rng-tools
77source:
78  enabled: true
79  name_template: "{{.ProjectName}}-{{.Version}}"
80
81checksum:
82  name_template: "{{.ProjectName}}_{{.Version}}_SHA256SUMS"
83
84milestones:
85  -
86    repo:
87      owner: gopasspw
88      name: gopass
89    close: true
90    fail_on_error: false
91    name_template: "{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
92
93signs:
94  -
95    id: gopass
96    artifacts: checksum
97    args: ["--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--armor", "--output", "${signature}", "--detach-sign", "${artifact}"]
98