-
Notifications
You must be signed in to change notification settings - Fork 544
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
50 lines (45 loc) · 1.21 KB
/
.goreleaser.yaml
File metadata and controls
50 lines (45 loc) · 1.21 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
variables:
component: destination/sqlite
binary: sqlite
project_name: plugins/destination/sqlite
monorepo:
tag_prefix: plugins-destination-sqlite-
dir: plugins/destination/sqlite
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=1
- GO111MODULE=on
- CC=/usr/bin/gencc.sh
- CXX=/usr/bin/gencpp.sh
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 }}_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_arm64.zip
dir: dist
- cmd: unzip -o {{ .Var.binary }}_linux_amd64.zip
dir: dist
- cmd: plugins/{{ .Var.component }} --version
dir: dist