commit 849a5100fff88fd597a0da7191449ff9dde15f2f Author: P3TERX Date: Thu Mar 26 04:46:16 2020 +0800 Initial commit diff --git a/.github/workflows/GeoLite.yml b/.github/workflows/GeoLite.yml new file mode 100644 index 0000000..72c9b69 --- /dev/null +++ b/.github/workflows/GeoLite.yml @@ -0,0 +1,43 @@ +#================================================= +# https://github.com/P3TERX/GeoLite.mmdb +# Description: Publish GeoLite.mmdb +# Lisence: MIT +# Author: P3TERX +# Blog: https://p3terx.com +#================================================= + +name: Publish GeoLite.mmdb + +on: + schedule: + - cron: 0 22 */3 * * +# watch: +# types: started + +jobs: + run: + runs-on: ubuntu-latest + timeout-minutes: 5 + + steps: + - name: Download GeoLite.mmdb + run: | + wget -nv -O- "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN&license_key=${LICENSE_KEY}&suffix=tar.gz" | tar zxvC . + wget -nv -O- "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=${LICENSE_KEY}&suffix=tar.gz" | tar zxvC . + wget -nv -O- "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=${LICENSE_KEY}&suffix=tar.gz" | tar zxvC . + mkdir -p upload + cp -v GeoLite*/*.mmdb upload + env: + LICENSE_KEY: ${{ secrets.LICENSE_KEY }} + + - name: Push to "download" branch + run: | + cd upload + git init + git config user.name "${{ github.actor }}" + git config user.email "${{ github.actor }}@users.noreply.github.com" + git checkout -b download + git add . + git commit -m "$(date +"%Y.%m.%d")" + git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}" + git push -f origin download diff --git a/.github/workflows/LICENSE b/.github/workflows/LICENSE new file mode 100644 index 0000000..5f5f0ed --- /dev/null +++ b/.github/workflows/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 P3TERX + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/COPYRIGHT.txt b/COPYRIGHT.txt new file mode 100644 index 0000000..9c5395f --- /dev/null +++ b/COPYRIGHT.txt @@ -0,0 +1 @@ +Database and Contents Copyright (c) 2020 MaxMind, Inc. diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..ee7434d --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,3 @@ +Use of this MaxMind product is governed by MaxMind's GeoLite2 End User License Agreement, which can be viewed at https://www.maxmind.com/en/geolite2/eula. + +This database incorporates GeoNames [https://www.geonames.org] geographical data, which is made available under the Creative Commons Attribution 4.0 License. To view a copy of this license, visit https://creativecommons.org/licenses/by/4.0/. diff --git a/README.md b/README.md new file mode 100644 index 0000000..7342bfc --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# GeoLite.mmdb + +[GeoLite2](https://dev.maxmind.com/geoip/geoip2/geolite2/) Country, City, and ASN databases + +## Download + +[GeoLite2-City.mmdb](https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-City.mmdb) + +[GeoLite2-ASN.mmdb](https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-ASN.mmdb) + +[GeoLite2-Country.mmdb](https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-Country.mmdb) + +## License + +Database and Contents Copyright (c) 2020 [MaxMind](https://www.maxmind.com/), Inc.