forked from guidowb/cf-targets-plugin
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.goreleaser.yml
More file actions
59 lines (53 loc) · 1.2 KB
/
.goreleaser.yml
File metadata and controls
59 lines (53 loc) · 1.2 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
54
55
56
57
58
59
version: 2
project_name: cf-targets-plugin
before:
hooks:
- go mod tidy
- gofmt -l -e .
- go vet ./...
- go test -race ./...
builds:
- main: .
binary: cf-targets-plugin
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
ldflags:
- -X 'main.SemVerMajor={{ .Major }}'
- -X 'main.SemVerMinor={{ .Minor }}'
- -X 'main.SemVerPatch={{ .Patch }}'
- -X 'main.SemVerPrerelease={{ .Prerelease }}'
- -X 'main.SemVerBuild='
- -X 'main.BuildDate={{ .Date }}'
- -X 'main.BuildVcsUrl={{ .GitURL }}'
- -X 'main.BuildVcsId={{ .ShortCommit }}'
- -X 'main.BuildVcsIdDate={{ .CommitDate }}'
- -X 'main.GoOs={{ .Os }}'
- -X 'main.GoArch={{ .Arch }}'
archives:
- formats: [binary]
name_template: >-
{{ .ProjectName }}-{{ .Version }}+{{ .Os }}.{{ .Arch }}
checksum:
name_template: "checksums.txt"
algorithm: sha256
release:
github:
owner: cloudfoundry-community
name: cf-targets-plugin
draft: true
prerelease: auto
name_template: "v{{ .Version }}"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore:"