forked from pulumi/pulumi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
197 lines (195 loc) · 4.75 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
dist: goreleaser
project_name: pulumi
before:
hooks:
- ./scripts/prep-for-goreleaser.sh
blobs:
- bucket: get.pulumi.com
folder: releases/sdk/
ids:
- pulumi-unix
- pulumi-windows
provider: s3
region: us-west-2
builds:
# Windows builds
- id: pulumi-windows
binary: pulumi
dir: pkg
goarch:
- amd64
goos:
- windows
ldflags:
- -X github.com/pulumi/pulumi/pkg/v3/version.Version={{.Tag}}
main: ./cmd/pulumi
- id: pulumi-language-nodejs-windows
binary: pulumi-language-nodejs
dir: sdk
goarch:
- amd64
goos:
- windows
ldflags:
- -X github.com/pulumi/pulumi/pkg/v3/version.Version={{.Tag}}
main: ./nodejs/cmd/pulumi-language-nodejs
- id: pulumi-language-python-windows
binary: pulumi-language-python
dir: sdk
goarch:
- amd64
goos:
- windows
ldflags:
- -X github.com/pulumi/pulumi/pkg/v3/version.Version={{.Tag}}
main: ./python/cmd/pulumi-language-python
- id: pulumi-language-dotnet-windows
binary: pulumi-language-dotnet
dir: sdk
goarch:
- amd64
goos:
- windows
ldflags:
- -X github.com/pulumi/pulumi/pkg/v3/version.Version={{.Tag}}
main: ./dotnet/cmd/pulumi-language-dotnet
- id: pulumi-language-go-windows
binary: pulumi-language-go
dir: sdk
goarch:
- amd64
goos:
- windows
ldflags:
- -X github.com/pulumi/pulumi/pkg/v3/version.Version={{.Tag}}
main: ./go/pulumi-language-go
# UNIX builds
- id: pulumi-unix
binary: pulumi
dir: pkg
goarch:
- amd64
- arm64
goos:
- linux
- darwin
ldflags:
- -X github.com/pulumi/pulumi/pkg/v3/version.Version={{.Tag}}
main: ./cmd/pulumi
- id: pulumi-language-nodejs-unix
binary: pulumi-language-nodejs
dir: sdk
goarch:
- amd64
- arm64
goos:
- linux
- darwin
ldflags:
- -X github.com/pulumi/pulumi/pkg/v3/version.Version={{.Tag}}
main: ./nodejs/cmd/pulumi-language-nodejs
- id: pulumi-language-python-unix
binary: pulumi-language-python
dir: sdk
goarch:
- amd64
- arm64
goos:
- linux
- darwin
ldflags:
- -X github.com/pulumi/pulumi/pkg/v3/version.Version={{.Tag}}
main: ./python/cmd/pulumi-language-python
- id: pulumi-language-dotnet-unix
binary: pulumi-language-dotnet
dir: sdk
goarch:
- amd64
- arm64
goos:
- linux
- darwin
ldflags:
- -X github.com/pulumi/pulumi/pkg/v3/version.Version={{.Tag}}
main: ./dotnet/cmd/pulumi-language-dotnet
- id: pulumi-language-go-unix
binary: pulumi-language-go
dir: sdk
goarch:
- amd64
- arm64
goos:
- linux
- darwin
ldflags:
- -X github.com/pulumi/pulumi/pkg/v3/version.Version={{.Tag}}
main: ./go/pulumi-language-go
archives:
- id: pulumi-unix
wrap_in_directory: pulumi
builds:
- pulumi-language-dotnet-unix
- pulumi-language-go-unix
- pulumi-language-python-unix
- pulumi-language-nodejs-unix
- pulumi-unix
replacements:
amd64: x64
files:
- pulumi-resource-pulumi-nodejs
- pulumi-resource-pulumi-python
- pulumi-analyzer-policy
- pulumi-analyzer-policy-python
- pulumi-language-python-exec
name_template: "{{ .ProjectName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}"
- id: pulumi-windows
wrap_in_directory: pulumi/bin
builds:
- pulumi-language-dotnet-windows
- pulumi-language-go-windows
- pulumi-language-python-windows
- pulumi-language-nodejs-windows
- pulumi-windows
replacements:
amd64: x64
format: zip
files:
- pulumi-resource-pulumi-nodejs.cmd
- pulumi-resource-pulumi-python.cmd
- pulumi-python3-shim.cmd
- pulumi-python-shim.cmd
- pulumi-analyzer-policy.cmd
- pulumi-analyzer-policy-python.cmd
- pulumi-language-python-exec
name_template: "{{ .ProjectName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}"
snapshot:
name_template: "{{ .Version }}-SNAPSHOT"
checksum:
name_template: "{{ .ProjectName }}-{{ .Version }}-checksums.txt"
brews:
-
name: pulumi
tap:
owner: pulumi
name: homebrew-tap
commit_author:
name: pulumi-bot
email: [email protected]
homepage: "https://pulumi.com"
description: "Pulumi - Modern Infrastructure as Code. Any cloud, any language "
folder: Formula
license: Apache-2.0
test: |
system "#{bin}/pulumi version"
conflicts:
- pulumi
install: |-
bin.install Dir["*"]
# Install shell completions
(bash_completion/"pulumi.bash").write Utils.safe_popen_read("#{bin}/pulumi gen-completion bash")
(zsh_completion/"_pulumi").write Utils.safe_popen_read("#{bin}/pulumi gen-completion zsh")
(fish_completion/"pulumi.fish").write Utils.safe_popen_read("#{bin}/pulumi gen-completion fish")
release:
discussion_category_name: Releases