From f76d1a5a246f97b878eb97c8fb5dff09738dfd89 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sun, 7 Nov 2021 17:02:40 +0100 Subject: [PATCH] initial commit for GeoLite.mmdb --- .drone.yml | 21 +++++++++++++++++++++ README.md | 25 +++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .drone.yml create mode 100644 README.md diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..870ea8a --- /dev/null +++ b/.drone.yml @@ -0,0 +1,21 @@ +--- +kind: pipeline +type: docker +name: default + +steps: + - name: Download GeoLite.mmdb + image: ubuntu:latest + commands: + - wget -nv -O- "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN&license_key=$LICENSE_KEY&suffix=tar.gz" | tar zxv + - wget -nv -O- "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=$LICENSE_KEY&suffix=tar.gz" | tar zxv + - wget -nv -O- "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=$LICENSE_KEY&suffix=tar.gz" | tar zxv + - mkdir -p upload + - cp -v GeoLite*/*.mmdb upload + - name: release + image: plugins/gitea-release + settings: + base_url: https://git.paulbsd.com + api_key: + from_secret: gitea_token + files: "upload/*" diff --git a/README.md b/README.md new file mode 100644 index 0000000..1a9f824 --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +# GeoLite.mmdb + +[MaxMind's GeoLite2](https://dev.maxmind.com/geoip/geoip2/geolite2/) Country, City, and ASN databases + +## Download + +### URL1 + +[GeoLite2-ASN.mmdb](https://git.io/GeoLite2-ASN.mmdb) + +[GeoLite2-City.mmdb](https://git.io/GeoLite2-City.mmdb) + +[GeoLite2-Country.mmdb](https://git.io/GeoLite2-Country.mmdb) + +### URL2 + +[GeoLite2-ASN.mmdb](https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-ASN.mmdb) + +[GeoLite2-City.mmdb](https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-City.mmdb) + +[GeoLite2-Country.mmdb](https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-Country.mmdb) + +## License + +Database and Contents Copyright (c) [MaxMind](https://www.maxmind.com/), Inc.