-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yml
More file actions
40 lines (40 loc) · 1012 Bytes
/
.goreleaser.yml
File metadata and controls
40 lines (40 loc) · 1012 Bytes
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
project_name: stackstate-backup-cli
release:
github:
owner: stackvista
name: stackstate-backup-cli
name_template: '{{.Tag}}'
before:
hooks:
- go mod download
builds:
- id: stackstate-backup-cli
targets:
- darwin_amd64
- darwin_arm64
- linux_amd64
- linux_arm64
- windows_amd64
main: .
ldflags:
- -s -w -X github.com/stackvista/stackstate-backup-cli/cmd/version.Version={{.Version}}
-X github.com/stackvista/stackstate-backup-cli/cmd/version.Commit={{.Commit}}
-X github.com/stackvista/stackstate-backup-cli/cmd/version.Date={{.Date}}
binary: sts-backup
env:
- CGO_ENABLED=0
- GO111MODULE=on
archives:
- id: stackstate-backup-cli
builds:
- stackstate-backup-cli
name_template: '{{ .ProjectName }}-{{ .Version }}.{{ .Os }}-{{- if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end }}'
format: tar.gz
format_overrides:
- goos: windows
format: zip
blobs:
- provider: s3
bucket: cli-dl.stackstate.com
ids:
- stackstate-backup-cli