| 1 |
project_name: 'geoipupdate' |
| 2 |
archives: |
| 3 |
- id: 'archives-unix' |
| 4 |
builds: |
| 5 |
- 'geoipupdate-unix' |
| 6 |
wrap_in_directory: true |
| 7 |
files: |
| 8 |
- 'CHANGELOG.md' |
| 9 |
- 'LICENSE-APACHE' |
| 10 |
- 'LICENSE-MIT' |
| 11 |
- 'README.md' |
| 12 |
- src: 'build/unix/*' |
| 13 |
dst: '.' |
| 14 |
strip_parent: true |
| 15 |
- id: 'archives-windows' |
| 16 |
builds: |
| 17 |
- 'geoipupdate-windows' |
| 18 |
wrap_in_directory: true |
| 19 |
files: |
| 20 |
- 'CHANGELOG.md' |
| 21 |
- 'LICENSE-APACHE' |
| 22 |
- 'LICENSE-MIT' |
| 23 |
- 'README.md' |
| 24 |
- src: 'build/windows/*' |
| 25 |
dst: '.' |
| 26 |
strip_parent: true |
| 27 |
format: 'zip' |
| 28 |
builds: |
| 29 |
- id: 'geoipupdate-unix' |
| 30 |
main: './cmd/geoipupdate' |
| 31 |
binary: 'geoipupdate' |
| 32 |
goarch: |
| 33 |
- '386' |
| 34 |
- 'amd64' |
| 35 |
- 'arm' |
| 36 |
- 'arm64' |
| 37 |
goos: |
| 38 |
- 'darwin' |
| 39 |
- 'linux' |
| 40 |
- 'freebsd' |
| 41 |
- 'openbsd' |
| 42 |
ignore: |
| 43 |
- goos: freebsd |
| 44 |
goarch: arm |
| 45 |
- goos: openbsd |
| 46 |
goarch: arm |
| 47 |
- goos: freebsd |
| 48 |
goarch: arm64 |
| 49 |
- goos: openbsd |
| 50 |
goarch: arm64 |
| 51 |
hooks: |
| 52 |
post: 'make data BUILDDIR="build/unix"' |
| 53 |
env: |
| 54 |
- CGO_ENABLED=0 |
| 55 |
|
| 56 |
|
| 57 |
- id: 'geoipupdate-packages' |
| 58 |
main: './cmd/geoipupdate' |
| 59 |
binary: 'geoipupdate' |
| 60 |
goarch: |
| 61 |
- '386' |
| 62 |
- 'amd64' |
| 63 |
- 'arm' |
| 64 |
- 'arm64' |
| 65 |
goos: |
| 66 |
- 'linux' |
| 67 |
hooks: |
| 68 |
post: 'make data BUILDDIR="build/packages" CONFFILE=/etc/GeoIP.conf DATADIR=/usr/share/GeoIP' |
| 69 |
ldflags: |
| 70 |
- '-s -w -X main.version={{.Version}} -X main.defaultConfigFile=/etc/GeoIP.conf -X main.defaultDatabaseDirectory=/usr/share/GeoIP' |
| 71 |
env: |
| 72 |
- CGO_ENABLED=0 |
| 73 |
- id: 'geoipupdate-windows' |
| 74 |
main: './cmd/geoipupdate' |
| 75 |
binary: 'geoipupdate' |
| 76 |
goarch: |
| 77 |
- '386' |
| 78 |
- 'amd64' |
| 79 |
goos: |
| 80 |
- 'windows' |
| 81 |
hooks: |
| 82 |
post: 'make data OS=Windows_NT BUILDDIR="build/windows"' |
| 83 |
env: |
| 84 |
- CGO_ENABLED=0 |
| 85 |
dockers: |
| 86 |
- ids: |
| 87 |
- 'geoipupdate-unix' |
| 88 |
image_templates: |
| 89 |
- "maxmindinc/geoipupdate:{{ .Tag }}-amd64" |
| 90 |
- "ghcr.io/maxmind/geoipupdate:{{ .Tag }}-amd64" |
| 91 |
dockerfile: docker/Dockerfile |
| 92 |
use: buildx |
| 93 |
goarch: amd64 |
| 94 |
extra_files: |
| 95 |
- docker/entry.sh |
| 96 |
- docker/healthcheck.sh |
| 97 |
build_flag_templates: |
| 98 |
- "--platform=linux/amd64" |
| 99 |
- image_templates: |
| 100 |
- "maxmindinc/geoipupdate:{{ .Tag }}-arm64" |
| 101 |
- "ghcr.io/maxmind/geoipupdate:{{ .Tag }}-arm64" |
| 102 |
dockerfile: docker/Dockerfile |
| 103 |
use: buildx |
| 104 |
goarch: arm64 |
| 105 |
extra_files: |
| 106 |
- docker/entry.sh |
| 107 |
- docker/healthcheck.sh |
| 108 |
build_flag_templates: |
| 109 |
- "--platform=linux/arm64" |
| 110 |
- image_templates: |
| 111 |
- "maxmindinc/geoipupdate:{{ .Tag }}-arm-v6" |
| 112 |
- "ghcr.io/maxmind/geoipupdate:{{ .Tag }}-arm-v6" |
| 113 |
dockerfile: docker/Dockerfile |
| 114 |
use: buildx |
| 115 |
goarch: arm |
| 116 |
goarm: 6 |
| 117 |
extra_files: |
| 118 |
- docker/entry.sh |
| 119 |
- docker/healthcheck.sh |
| 120 |
build_flag_templates: |
| 121 |
- "--platform=linux/arm/v6" |
| 122 |
docker_manifests: |
| 123 |
- name_template: "maxmindinc/geoipupdate:{{ .Tag }}" |
| 124 |
image_templates: |
| 125 |
- "maxmindinc/geoipupdate:{{ .Tag }}-amd64" |
| 126 |
- "maxmindinc/geoipupdate:{{ .Tag }}-arm64" |
| 127 |
- "maxmindinc/geoipupdate:{{ .Tag }}-arm-v6" |
| 128 |
- name_template: "maxmindinc/geoipupdate:v{{ .Major }}" |
| 129 |
image_templates: |
| 130 |
- "maxmindinc/geoipupdate:{{ .Tag }}-amd64" |
| 131 |
- "maxmindinc/geoipupdate:{{ .Tag }}-arm64" |
| 132 |
- "maxmindinc/geoipupdate:{{ .Tag }}-arm-v6" |
| 133 |
- name_template: "maxmindinc/geoipupdate:v{{ .Major }}.{{ .Minor }}" |
| 134 |
image_templates: |
| 135 |
- "maxmindinc/geoipupdate:{{ .Tag }}-amd64" |
| 136 |
- "maxmindinc/geoipupdate:{{ .Tag }}-arm64" |
| 137 |
- "maxmindinc/geoipupdate:{{ .Tag }}-arm-v6" |
| 138 |
- name_template: "maxmindinc/geoipupdate:latest" |
| 139 |
image_templates: |
| 140 |
- "maxmindinc/geoipupdate:{{ .Tag }}-amd64" |
| 141 |
- "maxmindinc/geoipupdate:{{ .Tag }}-arm64" |
| 142 |
- "maxmindinc/geoipupdate:{{ .Tag }}-arm-v6" |
| 143 |
- name_template: "ghcr.io/maxmind/geoipupdate:{{ .Tag }}" |
| 144 |
image_templates: |
| 145 |
- "ghcr.io/maxmind/geoipupdate:{{ .Tag }}-amd64" |
| 146 |
- "ghcr.io/maxmind/geoipupdate:{{ .Tag }}-arm64" |
| 147 |
- "ghcr.io/maxmind/geoipupdate:{{ .Tag }}-arm-v6" |
| 148 |
- name_template: "ghcr.io/maxmind/geoipupdate:v{{ .Major }}" |
| 149 |
image_templates: |
| 150 |
- "ghcr.io/maxmind/geoipupdate:{{ .Tag }}-amd64" |
| 151 |
- "ghcr.io/maxmind/geoipupdate:{{ .Tag }}-arm64" |
| 152 |
- "ghcr.io/maxmind/geoipupdate:{{ .Tag }}-arm-v6" |
| 153 |
- name_template: "ghcr.io/maxmind/geoipupdate:v{{ .Major }}.{{ .Minor }}" |
| 154 |
image_templates: |
| 155 |
- "ghcr.io/maxmind/geoipupdate:{{ .Tag }}-amd64" |
| 156 |
- "ghcr.io/maxmind/geoipupdate:{{ .Tag }}-arm64" |
| 157 |
- "ghcr.io/maxmind/geoipupdate:{{ .Tag }}-arm-v6" |
| 158 |
- name_template: "ghcr.io/maxmind/geoipupdate:latest" |
| 159 |
image_templates: |
| 160 |
- "ghcr.io/maxmind/geoipupdate:{{ .Tag }}-amd64" |
| 161 |
- "ghcr.io/maxmind/geoipupdate:{{ .Tag }}-arm64" |
| 162 |
- "ghcr.io/maxmind/geoipupdate:{{ .Tag }}-arm-v6" |
| 163 |
nfpms: |
| 164 |
- builds: |
| 165 |
- 'geoipupdate-packages' |
| 166 |
vendor: 'MaxMind, Inc.' |
| 167 |
homepage: https://www.maxmind.com/ |
| 168 |
maintainer: 'MaxMind, Inc. <[email protected]>' |
| 169 |
description: Program to perform automatic updates of GeoIP2 and GeoLite2 binary databases. |
| 170 |
license: Apache 2.0 or MIT |
| 171 |
formats: |
| 172 |
- deb |
| 173 |
- rpm |
| 174 |
bindir: /usr/bin |
| 175 |
contents: |
| 176 |
- dst: /usr/share/GeoIP |
| 177 |
type: 'dir' |
| 178 |
- src: 'CHANGELOG.md' |
| 179 |
dst: '/usr/share/doc/geoipupdate/CHANGELOG.md' |
| 180 |
- src: 'LICENSE-APACHE' |
| 181 |
dst: '/usr/share/doc/geoipupdate/LICENSE-APACHE' |
| 182 |
- src: 'LICENSE-MIT' |
| 183 |
dst: '/usr/share/doc/geoipupdate/LICENSE-MIT' |
| 184 |
- src: 'README.md' |
| 185 |
dst: '/usr/share/doc/geoipupdate/README.md' |
| 186 |
- src: 'build/packages/GeoIP.conf' |
| 187 |
dst: '/usr/share/doc/geoipupdate/GeoIP.conf' |
| 188 |
- src: 'build/packages/GeoIP.conf.md' |
| 189 |
dst: '/usr/share/doc/geoipupdate/GeoIP.conf.md' |
| 190 |
- src: 'build/packages/geoipupdate.md' |
| 191 |
dst: '/usr/share/doc/geoipupdate/geoipupdate.md' |
| 192 |
- src: 'build/packages/GeoIP.conf.5' |
| 193 |
dst: '/usr/share/man/man5/GeoIP.conf.5' |
| 194 |
- src: 'build/packages/geoipupdate.1' |
| 195 |
dst: '/usr/share/man/man1/geoipupdate.1' |
| 196 |
- src: 'build/packages/GeoIP.conf' |
| 197 |
dst: '/etc/GeoIP.conf' |
| 198 |
type: config |
| 199 |
release: |
| 200 |
name_template: "{{.Version}}" |
| 201 |
target_commitish: "{{ .FullCommit }}" |