forked from turbot/powerpipe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
101 lines (83 loc) · 2.63 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: 2
builds:
- id: powerpipe-linux-arm64
binary: powerpipe
goos:
- linux
goarch:
- arm64
env:
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
# Custom ldflags.
#
# Default: '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser'
# Templates: allowed
ldflags:
# Go Releaser analyzes your Git repository and identifies the most recent Git tag (typically the highest version number) as the version for your release.
# This is how it determines the value of {{.Version}}.
- -s -w -X main.version={{.Version}} -X main.date={{.Date}} -X main.commit={{.Commit}} -X main.builtBy=goreleaser
- id: powerpipe-linux-amd64
binary: powerpipe
goos:
- linux
goarch:
- amd64
env:
- CC=x86_64-linux-gnu-gcc
- CXX=x86_64-linux-gnu-g++
ldflags:
- -s -w -X main.version={{.Version}} -X main.date={{.Date}} -X main.commit={{.Commit}} -X main.builtBy=goreleaser
- id: powerpipe-darwin-arm64
binary: powerpipe
goos:
- darwin
goarch:
- arm64
env:
- CC=oa64-clang
- CXX=oa64-clang++
ldflags:
- -s -w -X main.version={{.Version}} -X main.date={{.Date}} -X main.commit={{.Commit}} -X main.builtBy=goreleaser
- id: powerpipe-darwin-amd64
binary: powerpipe
goos:
- darwin
goarch:
- amd64
env:
- CC=o64-clang
- CXX=o64-clang++
ldflags:
- -s -w -X main.version={{.Version}} -X main.date={{.Date}} -X main.commit={{.Commit}} -X main.builtBy=goreleaser
archives:
- format: tar.gz
id: homebrew
name_template: "{{ .ProjectName }}.{{ .Os }}.{{ .Arch }}"
files:
- none*
# it is necessary to specify the name_template of the snapshot, or else the snapshot gets created with
# two dash(-) which results in a 500 error while downloading
snapshot:
name_template: "{{ incpatch .Version }}-next"
checksum:
name_template: "checksums.txt"
changelog:
disable: true
release:
prerelease: auto
brews:
- ids:
- homebrew
name: powerpipe@{{ .Major }}.{{ .Minor }}.{{ .Patch }}
repository:
owner: turbot
name: homebrew-tap
branch: powerpipe-brew
directory: Formula
url_template: "https://github.com/turbot/powerpipe/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
homepage: "https://powerpipe.io/"
description: "Dashboards for DevOps. Visualize cloud configurations. Assess security posture against a massive library of benchmarks. Build custom dashboards with code."
skip_upload: auto
install: |-
bin.install "powerpipe"