forked from yortyrh/geoipupdate-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
61 lines (59 loc) · 3.22 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: 'MaxMind GeoIP Updater'
description: 'Download the latest version of a MaxMind GeoIP database'
branding:
icon: arrow-down-circle
color: green
inputs:
account-id:
description: 'Account ID associated with your MaxMind account. This are available from https://www.maxmind.com/en/my_license_key'
required: true
license-key:
description: 'License key associated with your MaxMind account. This are available from https://www.maxmind.com/en/my_license_key'
required: true
edition-ids:
description: 'Enter the edition IDs of the databases you would like to update. Multiple edition IDs are separated by spaces.'
required: true
db-path:
description: 'Enter the workspace path to save databases in'
required: true
default: '.'
account-id-file:
description: 'Your MaxMind account ID. This was formerly known as `UserId`. This in particular uses the `GEOIPUPDATE_ACCOUNT_ID_FILE` environment variable.'
license-key-file:
description: 'Your case-sensitive MaxMind license key. This in particular uses the `GEOIPUPDATE_LICENSE_KEY_FILE` environment variable.'
host:
description: 'The host name of the server to use. The default is `updates.maxmind.com`.'
default: 'updates.maxmind.com'
proxy:
description: 'The proxy host name or IP address. You may optionally specify a port number, e.g., `127.0.0.1:8888`. If no port number is specified, 1080 will be used.'
proxy-user-password:
description: 'The proxy username and password, separated by a colon. For instance, `username:password`.'
preserve-file-times:
description: 'Whether to preserve modification times of files downloaded from the server. This option is either `0` or `1`. The default is `0`.'
default: 0
lock-file:
description: 'The lock file to use. This ensures only one `geoipupdate` process can run at a time. Note: Once created, this lockfile is not removed from the filesystem. The default is `.geoipupdate.lock` under the `dp-path`.'
default: '.geoipupdate.lock'
retry-for:
description: 'The amount of time to retry for when errors during HTTP transactions are encountered. It can be specified as a (possibly fractional) decimal number followed by a unit suffix. Valid time units are `ns`, `us` (or `µs`), `ms`, `s`, `m`, `h`. The default is `5m` (5 minutes).'
default: '5m'
parallelism:
description: 'The maximum number of parallel database downloads. The default is 1, which means that databases will be downloaded sequentially.'
default: 1
runs:
using: 'docker'
image: 'Dockerfile'
env:
GEOIPUPDATE_ACCOUNT_ID: ${{ inputs.account-id }}
GEOIPUPDATE_ACCOUNT_ID_FILE: ${{ inputs.account-id-file }}
GEOIPUPDATE_LICENSE_KEY: ${{ inputs.license-key }}
GEOIPUPDATE_LICENSE_KEY_FILE: ${{ inputs.license-key-file }}
GEOIPUPDATE_EDITION_IDS: ${{ inputs.edition-ids }}
GEOIPUPDATE_DB_DIR: ${{ inputs.db-path }}
GEOIPUPDATE_HOST: ${{ inputs.host }}
GEOIPUPDATE_PROXY: ${{ inputs.proxy }}
GEOIPUPDATE_PROXY_USER_PASSWORD: ${{ inputs.proxy-user-password }}
GEOIPUPDATE_PRESERVE_FILE_TIMES: ${{ inputs.preserve-file-times }}
GEOIPUPDATE_LOCK_FILE: ${{ inputs.lock-file }}
GEOIPUPDATE_RETRY_FOR: ${{ inputs.retry-for }}
GEOIPUPDATE_PARALLELISM: ${{ inputs.parallelism }}