-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
70 lines (63 loc) · 1.63 KB
/
.goreleaser.yaml
File metadata and controls
70 lines (63 loc) · 1.63 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
project_name: atlas-cli-plugin-terraform
version: 2
before:
hooks:
- curl https://pgp.mongodb.com/atlas-cli-plugin-terraform.asc -o signature.asc
builds:
- id: linux
goos: [linux]
goarch: [amd64, arm64]
<<: &build_defaults
binary: ./binary
main: ./cmd/plugin
- id: macos
goos: [darwin]
goarch: [amd64, arm64]
<<: *build_defaults
- id: windows
goos: [windows]
goarch: [amd64]
goamd64: [v1]
<<: *build_defaults
hooks:
post: # Notarize the Windows binary replacing the one created by goreleaser
- cmd: ./scripts/windows_notarize.sh
output: true
archives:
- id: linux
builds: [linux]
<<: &archive_defaults
files:
- src: './bin/manifest{{ if eq .Os "windows" }}.windows{{end}}.yml'
dst: ./manifest.yml
- id: macos
builds: [macos]
<<: *archive_defaults
- id: windows
builds: [windows]
<<: *archive_defaults
signs:
- id: all_artifacts
signature: "${artifact}.sig"
cmd: "./scripts/notarize.sh"
ids:
- linux
- macos
- windows
artifacts: all
output: true
release:
prerelease: auto
extra_files:
- glob: ./*.asc
gomod: # https://goreleaser.com/customization/verifiable_builds/
# Proxy a module from proxy.golang.org, making the builds verifiable.
# This will only be effective if running against a tag. Snapshots will ignore
# this setting.
# Notice: for this to work your `build.main` must be a package, not a `.go` file.
proxy: false
# Sets the `-mod` flag value.
#
# Since: v1.7
mod: mod