-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
53 lines (49 loc) · 1.86 KB
/
Copy path.goreleaser.yaml
File metadata and controls
53 lines (49 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: 2
builds:
- id: http-assert
main: ./cmd/http-assert
# A tool whose job is to run inside pipelines and scratch images has no
# business linking against a libc that might not be there.
env:
- CGO_ENABLED=0
flags:
- -trimpath
# main.version is the release identity; without it the binary falls back to
# the pseudo-version Go derives from the commit, which is accurate but not
# the tag anybody asked for. The v prefix keeps a downloaded binary saying
# the same thing as one from `go install ...@v0.1.0`.
#
# .Version rather than .Tag: in snapshot mode .Tag is the *previous* tag, so
# stamping it would have a snapshot build claim to be a release it is not.
ldflags:
- -s -w -X main.version=v{{ .Version }}
# Reproducible builds: without this the archive timestamp is "now", so two
# builds of the same commit produce different checksums.
mod_timestamp: "{{ .CommitTimestamp }}"
goos: [linux, darwin, windows]
goarch: [amd64, arm64]
ignore:
- goos: windows
goarch: arm64
archives:
- formats: [tar.gz]
format_overrides:
- goos: windows
formats: [zip]
files:
- README.md
- CHANGELOG.md
- LICENSE
checksum:
name_template: checksums.txt
# The release body is CHANGELOG.md and nothing else. The release workflow passes
# the section for the tag as --release-notes, which makes this pipe unreachable:
# goreleaser loads the file and returns before generating anything.
#
# It stays, and stays enabled, because `disable: true` would throw the file away
# too and publish empty notes -- the flag is ignored when the pipe is disabled.
# What is left is the fallback for a `goreleaser release` run by hand without the
# flag, which produces the commit dump the changelog exists to replace. Use
# `just release-notes` instead.
changelog:
use: github