-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.yaml
64 lines (58 loc) · 1.59 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
env:
- CGO_ENABLED=0
- REPO_OWNER=solarwinds
- REPO_NAME=swo-cli
builds:
- main: ./cmd/swo/main.go
id: linux
binary: swo
ldflags:
- "-s -w -X 'main.version=v{{ .Version }}'"
targets:
- darwin_amd64
- darwin_arm64
- linux_amd64
- linux_arm64
- main: ./cmd/swo/main.go
id: win
binary: swo
ldflags:
- "-s -w -X 'main.version=v{{ .Version }}'"
targets:
- windows_amd64
hooks:
post:
- env:
- SP_SIGNING_POLICY=Release
- SP_ARTIFACT_CONFIGURATION=exe
cmd: pwsh -c "Submit-SigningRequest -ApiToken "$env:SP_CI_USER_TOKEN" -OrganizationId "$env:SP_ORGANIZATION_ID" -ProjectSlug "$env:SP_PROJECT" -SigningPolicySlug "$env:SP_SIGNING_POLICY" -ArtifactConfigurationSlug "$env:SP_ARTIFACT_CONFIGURATION" -InputArtifactPath '{{ .Path }}' -OutputArtifactPath '{{ .Path }}' -Force -WaitForCompletion"
output: true
archives:
- builds:
- win
- linux
- mac
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
format: zip
universal_binaries:
- id: mac
ids:
- "linux"
replace: true
name_template: "swo"
notarize:
macos:
- enabled: '{{ isEnvSet "SWO_MAC_P12_CERT" }}'
ids:
- mac
sign:
certificate: "{{.Env.SWO_MAC_P12_CERT}}"
password: "{{.Env.SWO_P12_PASSWORD}}"
notarize:
issuer_id: "{{.Env.SWO_ISSUER_ID}}"
key_id: "{{.Env.SWO_KEY_ID}}"
key: "{{.Env.SWO_MAC_P8_FILE}}"
wait: true
timeout: 20m
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'