-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgoreleaser_terraform.yaml
81 lines (81 loc) · 1.86 KB
/
goreleaser_terraform.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
project_name: mgc
version: 2
builds:
- env: [CGO_ENABLED=0]
id: "terraformwin"
goos:
- windows
goarch:
- amd64
- arm64
binary: terraform-provider-mgc
ldflags:
- -s -w -X main.Version={{.Version}}"
flags:
- -tags=embed release
main: main.go
- env: [CGO_ENABLED=0]
id: "terraform"
goos:
- linux
- darwin
- freebsd
goarch:
- amd64
- arm64
binary: terraform-provider-mgc
ldflags:
- -s -w -X main.Version={{.Version}}"
flags:
- -tags=embed release
main: main.go
archives:
- id: terraform
name_template: "terraform-provider-mgc_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format: zip
builds:
- terraform
files:
- src: "README.md"
dst: "README.md"
- src: "docs/**/*"
dst: "docs/"
- id: terraformwin
name_template: "terraform-provider-mgc_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format: zip
builds:
- terraformwin
files:
- src: "README.md"
dst: "README.md"
- src: "docs/**/*"
dst: "docs/"
checksum:
extra_files:
- glob: "terraform-registry-manifest.json"
name_template: "terraform-provider-mgc_{{ .Version }}_manifest.json"
name_template: "terraform-provider-mgc_{{ .Version }}_SHA256SUMS"
algorithm: sha256
signs:
- artifacts: checksum
args:
- "--batch"
- "--yes"
- "--pinentry-mode"
- "loopback"
- "--passphrase"
- "{{ .Env.GPG_PASSPHRASE }}"
- "--local-user"
- "{{ .Env.GPG_FINGERPRINT }}"
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
release:
extra_files:
- glob: "terraform-registry-manifest.json"
name_template: "terraform-provider-mgc_{{ .Version }}_manifest.json"
draft: true
prerelease: true
header: |
## Terraform provider ({{ .Date }})