-
Notifications
You must be signed in to change notification settings - Fork 78
/
.goreleaser.yml
68 lines (68 loc) · 1.96 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
# ref. https://goreleaser.com/customization/build/
builds:
- id: avalanche-cli
main: ./main.go
binary: avalanche
flags:
- -v
# windows is ignored by default, as the `goos` field by default only
# contains linux and darwin
ldflags:
- -X 'github.com/ava-labs/avalanche-cli/cmd.Version={{.Version}}'
- -X 'github.com/ava-labs/avalanche-cli/pkg/metrics.telemetryToken={{ .Env.TELEMETRY_TOKEN }}'
goos:
- linux
- darwin
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=1
- CGO_CFLAGS=-O -D__BLST_PORTABLE__ # Set the CGO flags to use the portable version of BLST
overrides:
- goos: linux
goarch: arm64
env:
- CC=aarch64-linux-gnu-gcc
- goos: darwin
goarch: arm64
env:
- CC=oa64-clang
- goos: darwin
goarch: amd64
goamd64: v1
env:
- CC=o64-clang
dockers:
- image_templates:
- 'avaplatform/avalanche-cli:{{ .Tag }}-amd64'
dockerfile: "{{ .Env.DOCKERFILE }}"
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
- image_templates:
- 'avaplatform/avalanche-cli:{{ .Tag }}-arm64'
dockerfile: "{{ .Env.DOCKERFILE }}"
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/arm64"
goarch: arm64
docker_manifests:
- name_template: 'avaplatform/avalanche-cli:latest'
image_templates:
- 'avaplatform/avalanche-cli:{{ .Tag }}-amd64'
- 'avaplatform/avalanche-cli:{{ .Tag }}-arm64'
- name_template: 'avaplatform/avalanche-cli:{{ .Tag }}'
image_templates:
- 'avaplatform/avalanche-cli:{{ .Tag }}-amd64'
- 'avaplatform/avalanche-cli:{{ .Tag }}-arm64'
release:
# Repo in which the release will be created.
# Default is extracted from the origin remote URL or empty if its private hosted.
github:
owner: ava-labs
name: avalanche-cli
# If tag indicates rc, will mark it as prerelease
prerelease: auto