forked from cloudquery/cloudquery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
36 lines (36 loc) · 981 Bytes
/
.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
includes:
- from_file:
# Relative to the directory Go Releaser is run from (which is the root of the repository)
path: ./plugins/.goreleaser.template.yaml
builds:
- flags:
- -buildmode=exe
env:
- CGO_ENABLED=0
- GO111MODULE=on
ldflags:
- -s -w -X github.com/cloudquery/cloudquery/plugins/{{ .Var.component }}/resources/plugin.Version={{.Version}}
goos:
- windows
- linux
- darwin
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
after:
hooks:
- cmd: unzip -o {{ .Var.binary }}_linux_arm64.zip
dir: dist
- cmd: unzip -o {{ .Var.binary }}_darwin_arm64.zip
dir: dist
- cmd: unzip -o {{ .Var.binary }}_windows_amd64.zip
dir: dist
- cmd: unzip -o {{ .Var.binary }}_darwin_amd64.zip
dir: dist
- cmd: unzip -o {{ .Var.binary }}_linux_amd64.zip
dir: dist
- cmd: plugins/{{ .Var.component }} --version
dir: dist