forked from Checkmarx/ast-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser-dev.yml
98 lines (91 loc) · 2.04 KB
/
.goreleaser-dev.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
project_name: ast-cli
release:
prerelease: true
name_template: 'Checkmarx One CLI {{.Version}}'
builds:
- main: ./cmd/main.go
env:
- CGO_ENABLED=0
binary: cx
id: cx
goos:
- linux
- windows
goarch:
- amd64
- arm
- arm64
ignore:
- goos: darwin
goarch: 386
- goos: linux
goarm: 7
- goos: windows
goarm: 7
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
ldflags:
- -s
- -w
- -X github.com/checkmarx/ast-cli/internal/params.Version={{.Version}}
hooks:
post:
- cmd: bash .github/scripts/signing_win.sh dist/cx_windows_amd64_v1/cx.exe {{.Os}} || true
output: true
env:
- SIGNING_REMOTE_SSH_USER={{ .Env.SIGNING_REMOTE_SSH_USER }}
- SIGNING_REMOTE_SSH_HOST={{ .Env.SIGNING_REMOTE_SSH_HOST }}
- SIGNING_HSM_CREDS={{ .Env.SIGNING_HSM_CREDS }}
- SIGNING_REMOTE_SSH_PRIVATE_KEY={{ .Env.SIGNING_REMOTE_SSH_PRIVATE_KEY }}
- main: ./cmd/main.go
env:
- CGO_ENABLED=0
binary: cx
id: cx-mac-universal
goos:
- darwin
goarch:
- amd64
- arm
- arm64
ldflags:
- -s
- -w
- -X github.com/checkmarx/ast-cli/internal/params.Version={{.Version}}
archives:
- id: cx
builds:
- cx
format_overrides:
- goos: windows
format: zip
replacements:
amd64: x64
386: x32
files:
- LICENSE
- id: cx-mac-universal
builds:
- cx-mac-universal
files:
- LICENSE
- ./dist/cx-mac-universal_darwin_all/cx.dmg
name_template: "{{ .ProjectName }}_{{ .Version }}_darwin_x64"
universal_binaries:
- id: cx-mac-universal
replace: true
name_template: "cx"
hooks:
post: gon gonMac.hcl
blobs:
- provider: s3
region: "{{ .Env.S3_BUCKET_REGION }}"
bucket: "{{ .Env.S3_BUCKET_NAME }}"
folder: "CxOne/CLI/{{ .Tag }}"
ids:
- cx
- cx-mac-universal
changelog:
use: github-native