GeoLite.mmdb/.drone.yml
Paul Lecuq cc19485d17
Some checks failed
continuous-integration/drone/tag Build is failing
continuous-integration/drone Build is passing
continuous-integration/drone/push Build is passing
added when on gitea release
2021-11-07 17:22:04 +01:00

29 lines
951 B
YAML

---
kind: pipeline
type: docker
name: default
steps:
- name: Download GeoLite.mmdb
image: ubuntu:latest
commands:
- apt-get update
- apt-get install -y wget
- 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
environment:
LICENSE_KEY:
from_secret: LICENSE_KEY
- name: release
image: plugins/gitea-release
settings:
base_url: https://git.paulbsd.com
api_key:
from_secret: gitea_token
files: "upload/*"
when:
event: tag