GeoLite.mmdb/.drone.yml

29 lines
961 B
YAML
Raw Permalink Normal View History

2021-11-07 17:02:40 +01:00
---
kind: pipeline
type: docker
name: default
steps:
- name: Download GeoLite.mmdb
image: ubuntu:latest
commands:
2021-11-07 17:12:38 +01:00
- apt-get update
2021-11-07 17:11:59 +01:00
- apt-get install -y wget
2021-11-07 17:02:40 +01:00
- 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
2021-11-07 17:14:24 +01:00
environment:
LICENSE_KEY:
from_secret: LICENSE_KEY
2021-11-07 17:26:03 +01:00
- name: Release databases
2021-11-07 17:02:40 +01:00
image: plugins/gitea-release
settings:
base_url: https://git.paulbsd.com
api_key:
from_secret: gitea_token
files: "upload/*"
2021-11-07 17:22:04 +01:00
when:
event: tag