-
Notifications
You must be signed in to change notification settings - Fork 25
/
.goreleaser.yml
96 lines (84 loc) · 2.67 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
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
---
builds:
- main: ./main.go
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
binary: tx
ldflags:
- -s -w -X 'github.com/transifex/cli/internal/txlib.Version={{.Version}}'
ignore:
- goos: windows
goarch: arm64
- goos: darwin
goarch: 386
archives:
- format_overrides:
- goos: windows
format: zip
name_template: "tx-{{ .Os }}-{{ .Arch }}"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
dockers:
- goarch: amd64
goos: linux
image_templates:
- "transifex/txcli:latest-amd64"
- "transifex/txcli:v{{ .Major }}-amd64"
- "transifex/txcli:v{{ .Major }}.{{ .Minor }}-amd64"
- "transifex/txcli:v{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64"
build_flag_templates:
- "--platform=linux/amd64"
dockerfile: 'build/Dockerfile-goreleaser'
- goarch: '386'
goos: linux
image_templates:
- "transifex/txcli:latest-386"
- "transifex/txcli:v{{ .Major }}-386"
- "transifex/txcli:v{{ .Major }}.{{ .Minor }}-386"
- "transifex/txcli:v{{ .Major }}.{{ .Minor }}.{{ .Patch }}-386"
build_flag_templates:
- "--platform=linux/386"
dockerfile: 'build/Dockerfile-goreleaser'
- goarch: arm64
goos: linux
image_templates:
- "transifex/txcli:latest-arm64"
- "transifex/txcli:v{{ .Major }}-arm64"
- "transifex/txcli:v{{ .Major }}.{{ .Minor }}-arm64"
- "transifex/txcli:v{{ .Major }}.{{ .Minor }}.{{ .Patch }}-arm64"
build_flag_templates:
- "--platform=linux/arm64/v8"
dockerfile: 'build/Dockerfile-goreleaser'
docker_manifests:
- name_template: "transifex/txcli:latest"
image_templates:
- "transifex/txcli:latest-386"
- "transifex/txcli:latest-amd64"
- "transifex/txcli:latest-arm64"
- name_template: "transifex/txcli:v{{ .Major }}"
image_templates:
- "transifex/txcli:v{{ .Major }}-386"
- "transifex/txcli:v{{ .Major }}-amd64"
- "transifex/txcli:v{{ .Major }}-arm64"
- name_template: "transifex/txcli:v{{ .Major }}.{{ .Minor }}"
image_templates:
- "transifex/txcli:v{{ .Major }}.{{ .Minor }}-386"
- "transifex/txcli:v{{ .Major }}.{{ .Minor }}-amd64"
- "transifex/txcli:v{{ .Major }}.{{ .Minor }}-arm64"
- name_template: "transifex/txcli:v{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
image_templates:
- "transifex/txcli:v{{ .Major }}.{{ .Minor }}.{{ .Patch }}-386"
- "transifex/txcli:v{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64"
- "transifex/txcli:v{{ .Major }}.{{ .Minor }}.{{ .Patch }}-arm64"