-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
71 lines (71 loc) · 1.83 KB
/
.goreleaser.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
project_name: stackstate-cli
release:
github:
owner: stackvista
name: stackstate-cli
name_template: '{{.Tag}}'
before:
hooks:
- go mod download
builds:
- id: stackstate-cli
targets:
- darwin_amd64
- darwin_arm64
- linux_amd64
- linux_arm64
- windows_amd64
main: .
ldflags:
- -s -w -X github.com/stackvista/stackstate-cli/static_info.Version={{.Version}}
-X github.com/stackvista/stackstate-cli/static_info.Commit={{.Commit}}
-X github.com/stackvista/stackstate-cli/static_info.BuildDate={{.Date}}
-X static_info.builtBy=goreleaser
binary: sts
env:
- CGO_ENABLED=0
- GO111MODULE=on
archives:
- id: stackstate-cli
builds:
- stackstate-cli
name_template: '{{ .ProjectName }}-{{ .Version }}.{{ .Os }}-{{- if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end }}'
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- release-notes.md
- release-notes.json
blobs:
- provider: s3
bucket: cli-dl.stackstate.com
ids:
- stackstate-cli
dockers:
- image_templates:
- "stackstate/stackstate-cli2:{{ .Version }}-x86_64"
ids:
- stackstate-cli
use: buildx
dockerfile: docker/Dockerfile.goreleaser
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- "stackstate/stackstate-cli2:{{ .Version }}-arm64v8"
ids:
- stackstate-cli
use: buildx
goarch: arm64
dockerfile: docker/Dockerfile.goreleaser
build_flag_templates:
- "--platform=linux/arm64/v8"
docker_manifests:
- name_template: stackstate/stackstate-cli2:{{ .Version }}
image_templates:
- stackstate/stackstate-cli2:{{ .Version }}-x86_64
- stackstate/stackstate-cli2:{{ .Version }}-arm64v8
- name_template: stackstate/stackstate-cli2:latest
image_templates:
- stackstate/stackstate-cli2:{{ .Version }}-x86_64
- stackstate/stackstate-cli2:{{ .Version }}-arm64v8