-
Notifications
You must be signed in to change notification settings - Fork 15
/
.goreleaser.yaml
45 lines (39 loc) · 1.28 KB
/
.goreleaser.yaml
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
release:
# If set to auto, will mark the release as not ready for production
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1
# If set to true, will mark the release as not ready for production.
prerelease: auto
project_name: grype-db
env:
# required to support multi architecture docker builds
- DOCKER_CLI_EXPERIMENTAL=enabled
- CGO_ENABLED=0
builds:
- id: linux-build
goos:
- linux
goarch:
- amd64
- arm64
binary: &binary grype-db
dir: &directory ./cmd/grype-db
# Set the modified timestamp on the output binary to the git timestamp (to ensure a reproducible build)
mod_timestamp: &build-timestamp '{{ .CommitTimestamp }}'
ldflags: &build-ldflags |
-w
-X github.com/anchore/grype-db/cmd/grype-db/application.version={{.Version}}
-X github.com/anchore/grype-db/cmd/grype-db/application.gitCommit={{.Commit}}
-X github.com/anchore/grype-db/cmd/grype-db/application.buildDate={{.Date}}
-X github.com/anchore/grype-db/cmd/grype-db/application.gitDescription={{.Summary}}
- id: darwin-build
goos:
- darwin
goarch:
- amd64
- arm64
binary: *binary
dir: *directory
mod_timestamp: *build-timestamp
ldflags: *build-ldflags
archives:
- format: tar.gz