forked from maxmind/geoipupdate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yml
79 lines (79 loc) · 2.2 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
project_name: 'geoipupdate'
archives:
- id: main
wrap_in_directory: true
files:
- 'CHANGELOG.md'
- 'LICENSE-APACHE'
- 'LICENSE-MIT'
- 'README.md'
- 'GeoIP.conf'
- 'GeoIP.conf.md'
- 'geoipupdate.md'
builds:
- main: './cmd/geoipupdate'
binary: 'geoipupdate'
goarch:
- '386'
- 'amd64'
- 'arm'
- 'arm64'
goos:
- 'darwin'
- 'linux'
hooks:
post: 'make data BUILDDIR=.'
env:
- CGO_ENABLED=0
dockers:
- image_templates:
- "maxmindinc/geoipupdate:{{ .Tag }}-amd64"
dockerfile: docker/Dockerfile
use_buildx: true
goarch: amd64
extra_files:
- docker/entry.sh
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- "maxmindinc/geoipupdate:{{ .Tag }}-arm64"
dockerfile: docker/Dockerfile
use_buildx: true
goarch: arm64
extra_files:
- docker/entry.sh
build_flag_templates:
- "--platform=linux/arm64"
- image_templates:
- "maxmindinc/geoipupdate:{{ .Tag }}-arm-v6"
dockerfile: docker/Dockerfile
use_buildx: true
goarch: arm
goarm: 6
extra_files:
- docker/entry.sh
build_flag_templates:
- "--platform=linux/arm/v6"
docker_manifests:
- name_template: "maxmindinc/geoipupdate:{{ .Tag }}"
image_templates:
- "maxmindinc/geoipupdate:{{ .Tag }}-amd64"
- "maxmindinc/geoipupdate:{{ .Tag }}-arm64"
- "maxmindinc/geoipupdate:{{ .Tag }}-arm-v6"
- name_template: "maxmindinc/geoipupdate:v{{ .Major }}"
image_templates:
- "maxmindinc/geoipupdate:{{ .Tag }}-amd64"
- "maxmindinc/geoipupdate:{{ .Tag }}-arm64"
- "maxmindinc/geoipupdate:{{ .Tag }}-arm-v6"
- name_template: "maxmindinc/geoipupdate:v{{ .Major }}.{{ .Minor }}"
image_templates:
- "maxmindinc/geoipupdate:{{ .Tag }}-amd64"
- "maxmindinc/geoipupdate:{{ .Tag }}-arm64"
- "maxmindinc/geoipupdate:{{ .Tag }}-arm-v6"
- name_template: "maxmindinc/geoipupdate:latest"
image_templates:
- "maxmindinc/geoipupdate:{{ .Tag }}-amd64"
- "maxmindinc/geoipupdate:{{ .Tag }}-arm64"
- "maxmindinc/geoipupdate:{{ .Tag }}-arm-v6"
checksum:
name_template: 'checksums-darwin-linux.txt'