mirror of
https://github.com/P3TERX/GeoLite.mmdb.git
synced 2026-09-05 23:05:48 +08:00
Initial commit
This commit is contained in:
commit
849a5100ff
43
.github/workflows/GeoLite.yml
vendored
Normal file
43
.github/workflows/GeoLite.yml
vendored
Normal file
@ -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
|
||||||
21
.github/workflows/LICENSE
vendored
Normal file
21
.github/workflows/LICENSE
vendored
Normal file
@ -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.
|
||||||
1
COPYRIGHT.txt
Normal file
1
COPYRIGHT.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
Database and Contents Copyright (c) 2020 MaxMind, Inc.
|
||||||
3
LICENSE.txt
Normal file
3
LICENSE.txt
Normal file
@ -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/.
|
||||||
15
README.md
Normal file
15
README.md
Normal file
@ -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.
|
||||||
Loading…
Reference in New Issue
Block a user