-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
81 lines (73 loc) · 2.26 KB
/
.goreleaser.yml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
---
project_name: conjur-inspect
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- main: ./cmd/conjur-inspect
binary: conjur-inspect
env:
- CGO_ENABLED=0
# Tag 'netgo' is a Go build tag that ensures a pure Go networking stack
# in the resulting binary instead of using the default host's stack to
# ensure a fully static artifact that has no dependencies.
flags:
- -tags=netgo
- -a
goos:
- linux
- darwin
goamd64:
- v1
# The `Tag` override is there to provide the git commit information in the
# final binary. See `Static long version tags` in the `Building` section
# of `CONTRIBUTING.md` for more information.
ldflags:
- -w
- -X github.com/cyberark/conjur-inspect/pkg/version.Commit={{ .ShortCommit }}
- -X github.com/cyberark/conjur-inspect/pkg/version.Version={{ .Env.VERSION }}
- -X github.com/cyberark/conjur-inspect/pkg/version.BuildNumber={{ .Env.BUILD_NUMBER }}
hooks:
post:
# Copy the binary out into the <dist> path, and give the copy the name we
# want in the release <extra_files>.
- mkdir -p "{{ dir .Path }}/../binaries"
- cp "{{ .Path }}" "{{ dir .Path }}/../binaries/conjur-inspect{{ .Target }}{{ .Ext }}"
archives:
- id: conjur-inspect-archive
files:
- CHANGELOG.md
- LICENSE
- README.md
name_template: "{{.ProjectName}}_{{.Env.VERSION}}_{{.Os}}_{{.Arch}}"
wrap_in_directory: true
checksum:
name_template: "SHA256SUMS.txt"
nfpms:
- bindir: /usr/bin
description: CyberArk Conjur Enterprise Inspection Tool
file_name_template: "{{.ProjectName}}_{{.Env.VERSION}}_{{.Arch}}"
formats:
- deb
- rpm
homepage: https://conjur.org
license: "Apache 2.0"
maintainer: CyberArk Maintainers <[email protected]>
vendor: CyberArk
snapshot:
name_template: "{{ .Tag }}-next"
release:
disable: true
draft: true
extra_files:
- glob: NOTICES.txt
- glob: CHANGELOG.md
- glob: LICENSE
- glob: dist/binaries
# Changelog management and publishing is handled by Jenkins-based release
# automation
changelog:
skip: true