forked from cloudquery/cloudquery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
120 lines (112 loc) · 4.44 KB
/
.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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
project_name: cli
monorepo:
tag_prefix: cli-
dir: cli
includes:
- from_file:
# Relative to the directory Go Releaser is run from (which is the root of the repository)
# Include everything from pre-release (build & publish to GitHub), plus publish to docker and Homebrew
path: ./cli/.goreleaser.prerelease.yaml
dockers:
-
goos: linux
goarch: amd64
dockerfile: Dockerfile.goreleaser
image_templates:
- "ghcr.io/cloudquery/cloudquery:latest-linux-amd64"
- "ghcr.io/cloudquery/cloudquery:{{.Version}}-linux-amd64"
- "ghcr.io/cloudquery/cloudquery:{{ .Major }}.{{ .Minor }}-linux-amd64"
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.source=https://github.com/cloudquery/cloudquery"
-
goos: linux
goarch: arm64
dockerfile: Dockerfile.goreleaser
image_templates:
- "ghcr.io/cloudquery/cloudquery:latest-linux-arm64"
- "ghcr.io/cloudquery/cloudquery:{{.Version}}-linux-arm64"
- "ghcr.io/cloudquery/cloudquery:{{ .Major }}.{{ .Minor }}-linux-arm64"
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.source=https://github.com/cloudquery/cloudquery"
-
goos: linux
goarch: amd64
dockerfile: Dockerfile.ubuntu.goreleaser
image_templates:
- "ghcr.io/cloudquery/cloudquery:latest-ubuntu-amd64"
- "ghcr.io/cloudquery/cloudquery:{{.Version}}-ubuntu-amd64"
- "ghcr.io/cloudquery/cloudquery:{{ .Major }}.{{ .Minor }}-ubuntu-amd64"
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.source=https://github.com/cloudquery/cloudquery"
-
goos: linux
goarch: arm64
dockerfile: Dockerfile.ubuntu.goreleaser
image_templates:
- "ghcr.io/cloudquery/cloudquery:latest-ubuntu-arm64"
- "ghcr.io/cloudquery/cloudquery:{{.Version}}-ubuntu-arm64"
- "ghcr.io/cloudquery/cloudquery:{{ .Major }}.{{ .Minor }}-ubuntu-arm64"
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.source=https://github.com/cloudquery/cloudquery"
docker_manifests:
- name_template: "ghcr.io/cloudquery/cloudquery:{{.Version}}"
image_templates:
- "ghcr.io/cloudquery/cloudquery:{{.Version}}-linux-amd64"
- "ghcr.io/cloudquery/cloudquery:{{.Version}}-linux-arm64"
- name_template: "ghcr.io/cloudquery/cloudquery:latest"
image_templates:
- "ghcr.io/cloudquery/cloudquery:latest-linux-amd64"
- "ghcr.io/cloudquery/cloudquery:latest-linux-arm64"
- name_template: "ghcr.io/cloudquery/cloudquery:{{ .Major }}.{{ .Minor }}"
image_templates:
- "ghcr.io/cloudquery/cloudquery:{{ .Major }}.{{ .Minor }}-linux-amd64"
- "ghcr.io/cloudquery/cloudquery:{{ .Major }}.{{ .Minor }}-linux-arm64"
brews:
-
ids:
- homebrew
name: cloudquery
repository:
owner: cloudquery
name: homebrew-tap
url_template: "https://github.com/cloudquery/cloudquery/releases/download/{{ .PrefixedTag }}/{{ .ArtifactName }}"
homepage: "https://cloudquery.io"
description: "Easily monitor and ask questions about your infrastructure."
install: |-
bin.install "cloudquery"
output = Utils.safe_popen_read("#{bin}/cloudquery", "completion", "bash")
(bash_completion/"cloudquery").write output
output = Utils.safe_popen_read("#{bin}/cloudquery", "completion", "zsh")
(zsh_completion/"_cloudquery").write output
output = Utils.safe_popen_read("#{bin}/cloudquery", "completion", "fish")
(fish_completion/"cloudquery.fish").write output
-
ids:
- homebrew
name: cloudquery@{{.Version}}
repository:
owner: cloudquery
name: homebrew-tap
url_template: "https://github.com/cloudquery/cloudquery/releases/download/{{ .PrefixedTag }}/{{ .ArtifactName }}"
homepage: "https://cloudquery.io"
description: "Easily monitor and ask questions about your infrastructure."
install: |-
bin.install "cloudquery"
output = Utils.safe_popen_read("#{bin}/cloudquery", "completion", "bash")
(bash_completion/"cloudquery").write output
output = Utils.safe_popen_read("#{bin}/cloudquery", "completion", "zsh")
(zsh_completion/"_cloudquery").write output
output = Utils.safe_popen_read("#{bin}/cloudquery", "completion", "fish")
(fish_completion/"cloudquery.fish").write output