1
+ ---
1
2
# Pro License
2
3
variables :
3
- SourceOrg : " "
4
+ SourceOrg : ' '
4
5
SourceRepo : terraform-provider-corefunc
5
- Description : " Utilities that should have been Terraform_core functions."
6
+ Description : Utilities that should have been Terraform_core functions.
6
7
MaintainerName : Northwood Labs
7
- MaintainerEmail : " "
8
- AppleCertificateID : " "
9
- GPGKeyID : " "
8
+ MaintainerEmail : ' '
9
+ AppleCertificateID : ' '
10
+ GPGKeyID : ' '
10
11
11
12
project_name : terraform-provider-corefunc
12
13
dist : ./dist
@@ -15,35 +16,35 @@ changelog:
15
16
skip : false
16
17
17
18
archives :
18
- - id : " linux-archive"
19
+ - id : linux-archive
19
20
builds :
20
21
- linux
21
22
allow_different_binary_count : false
22
23
wrap_in_directory : false
23
24
format : zip
24
25
files :
25
26
- none*
26
- name_template : " {{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}"
27
+ name_template : ' {{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}'
27
28
28
- - id : " windows-archive"
29
+ - id : windows-archive
29
30
builds :
30
31
- windows
31
32
allow_different_binary_count : false
32
33
wrap_in_directory : false
33
34
format : zip
34
35
files :
35
36
- none*
36
- name_template : " {{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}"
37
+ name_template : ' {{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}'
37
38
38
- - id : " macos-archive"
39
+ - id : macos-archive
39
40
builds :
40
41
- macos-universal
41
42
allow_different_binary_count : false
42
43
wrap_in_directory : false
43
44
format : zip
44
45
files :
45
46
- none*
46
- name_template : " {{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_universal"
47
+ name_template : ' {{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_universal'
47
48
48
49
builds :
49
50
# -----------------------------------------------------------------------------
@@ -52,7 +53,7 @@ builds:
52
53
- id : linux
53
54
dir : .
54
55
main : .
55
- binary : " {{ .ProjectName }}_v{{ .Version }}"
56
+ binary : ' {{ .ProjectName }}_v{{ .Version }}'
56
57
skip : false
57
58
ldflags :
58
59
- -s -w
@@ -84,7 +85,7 @@ builds:
84
85
- id : windows
85
86
dir : .
86
87
main : .
87
- binary : " {{ .ProjectName }}_v{{ .Version }}"
88
+ binary : ' {{ .ProjectName }}_v{{ .Version }}'
88
89
skip : false
89
90
ldflags :
90
91
- -s -w
@@ -116,7 +117,7 @@ builds:
116
117
- id : macos
117
118
dir : .
118
119
main : .
119
- binary : " {{ .ProjectName }}_v{{ .Version }}"
120
+ binary : ' {{ .ProjectName }}_v{{ .Version }}'
120
121
skip : false
121
122
ldflags :
122
123
- -s -w
@@ -144,63 +145,44 @@ universal_binaries:
144
145
- id : macos-universal
145
146
ids :
146
147
- macos
147
- name_template : " {{ .ProjectName }}_v{{ .Version }}"
148
+ name_template : ' {{ .ProjectName }}_v{{ .Version }}'
148
149
replace : true
149
150
hooks :
150
151
post :
151
152
# Apple Account
152
153
# https://developer.apple.com/account/resources/certificates/
153
- - codesign -s {{.Var.AppleCertificateID}} -o runtime -v './dist/macos-universal_darwin_all/{{.ProjectName}}_v{{ .Version }}'
154
+ - codesign -s {{.Var.AppleCertificateID}} -o runtime -v './dist/macos-universal_darwin_all/{{.ProjectName}}_v{{ .Version
155
+ }}'
154
156
155
157
checksum :
156
- name_template : " {{ .ProjectName }}-checksums.txt"
158
+ name_template : ' {{ .ProjectName }}-checksums.txt'
157
159
algorithm : sha256
158
160
159
161
signs :
160
162
- id : gpg
161
163
ids :
162
164
- linux-archive
163
165
- windows-archive
164
- signature : " ${artifact}.sig"
166
+ signature : ${artifact}.sig
165
167
cmd : gpg2
166
- args :
167
- [
168
- " -u" ,
169
- " {{ .Var.GPGKeyID }}" ,
170
- " --output" ,
171
- " ${signature}" ,
172
- " --detach-sign" ,
173
- " ${artifact}" ,
174
- ]
168
+ args : [-u, '{{ .Var.GPGKeyID }}', --output, '${signature}', --detach-sign, '${artifact}']
175
169
artifacts : all
176
170
177
171
- id : gatekeeper
178
172
ids :
179
173
- macos-archive
180
- signature : " ${artifact}"
174
+ signature : ${artifact}
181
175
cmd : xcrun
182
- args :
183
- [
184
- " notarytool" ,
185
- " submit" ,
186
- " ./dist/{{ .ProjectName }}_v{{ .Version }}_darwin_universal.zip" ,
187
- " --apple-id" ,
188
- " {{ .Env.AC_APPLE_ID }}" ,
189
- " --password" ,
190
- " {{ .Env.AC_PASSWORD }}" ,
191
- " --team-id" ,
192
- " {{ .Env.AC_TEAM_ID }}" ,
193
- " --progress" ,
194
- " --wait" ,
195
- ]
176
+ args : [notarytool, submit, './dist/{{ .ProjectName }}_v{{ .Version }}_darwin_universal.zip', --apple-id, '{{ .Env.AC_APPLE_ID
177
+ }}', --password, '{{ .Env.AC_PASSWORD }}', --team-id, '{{ .Env.AC_TEAM_ID }}', --progress, --wait]
196
178
artifacts : all
197
179
198
180
release :
199
181
# Repo in which the release will be created.
200
182
# Default is extracted from the origin remote URL or empty if its private hosted.
201
183
github :
202
- owner : " {{ .Var.SourceOrg }}"
203
- name : " {{ .Var.SourceRepo }}"
184
+ owner : ' {{ .Var.SourceOrg }}'
185
+ name : ' {{ .Var.SourceRepo }}'
204
186
205
187
# IDs of the archives to use.
206
188
# Defaults to all.
0 commit comments