-
Notifications
You must be signed in to change notification settings - Fork 19
/
.goreleaser.yml
63 lines (59 loc) · 1.42 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
# For documentation at http://goreleaser.com
before:
hooks:
- go mod download
release:
github:
owner: pivotal-cf
name: kiln
prerelease: auto
builds:
- env:
- CGO_ENABLED=0
targets:
- linux_amd64
- windows_amd64
- darwin_amd64
- darwin_arm64
ldflags:
- -X "main.version={{.Version}}"
main: ./
archives:
- id: github
format: binary
name_template: "kiln-{{ .Os }}-{{ .Arch }}-{{ .Version }}"
- id: homebrew
format: "tar.gz"
name_template: "kiln-{{ .Os }}-{{ .Arch }}-{{ .Version }}"
format_overrides:
- goos: windows
format: zip
brews:
- name: kiln
tap:
owner: pivotal-cf
name: kiln
token: "{{ .Env.GITHUB_TOKEN }}"
folder: HomebrewFormula
ids:
- homebrew
test: |
system "#{bin}/kiln --version"
dockers:
- image_templates:
- "pivotalcfreleng/kiln:latest"
- "pivotalcfreleng/kiln:{{ .Tag }}"
- "gcr.io/tas-ppe/pivotalcfreleng/kiln:latest"
- "gcr.io/tas-ppe/pivotalcfreleng/kiln:{{ .Tag }}"
skip_push: false
build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
skip: true