-
Notifications
You must be signed in to change notification settings - Fork 10
/
action.yml
83 lines (83 loc) · 2.79 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: "Giessdenkiez.de DWD Harvester"
description: "Collect rain data from the DWD for the giessdenkiez.de app"
inputs:
PG_SERVER:
description: "The server where the PostgreSQL database lives"
required: true
PG_PORT:
required: true
description: "The port of the PostgreSQL database"
default: 5432
PG_USER:
required: true
description: "The user of the PostgreSQL database"
PG_PASS:
required: true
description: "The password of the PostgreSQL database"
PG_DB:
required: true
description: "The name of the PostgreSQL database"
SUPABASE_URL:
required: true
description: "The base URL to Supabase, e.g. http://localhost:54321 for a local Supabase"
SUPABASE_SERVICE_ROLE_KEY:
required: true
description: "The service role key for accessing the Supabase bucket"
SUPABASE_BUCKET_NAME:
description: "The bucket name where the harvested data should be pushed to"
required: true
OUTPUT:
description: ""
required: true
default: "True"
MAPBOXUSERNAME:
description: "The Mapbox account to which the tileset is sent"
required: true
MAPBOXTOKEN:
description: "The associated token of the Mapbox account"
required: true
MAPBOXTILESET:
description: "The name the tileset should receive"
required: true
MAPBOXLAYERNAME:
description: "The layer within the tileset that holds the trees data"
required: true
LOGGING:
description: ""
required: true
default: "INFO"
SKIP_MAPBOX:
description: "Set to 'True' to skip the Mapbox Tileset generation (for testing pipelines)"
required: true
default: "False"
LIMIT_DAYS:
description: "The number of days to harvest DWD data for"
required: true
default: "30"
SURROUNDING_SHAPE_FILE:
description: "The path to the shape file of the area of interest"
required: true
default: "assets/buffer.shp"
runs:
using: "docker"
image: "harvester/Dockerfile"
env:
PG_SERVER: ${{ inputs.PG_SERVER }}
PG_PORT: ${{ inputs.PG_PORT }}
PG_USER: ${{ inputs.PG_USER }}
PG_PASS: ${{ inputs.PG_PASS }}
PG_DB: ${{ inputs.PG_DB }}
SUPABASE_URL: ${{ inputs.SUPABASE_URL }}
SUPABASE_SERVICE_ROLE_KEY: ${{ inputs.SUPABASE_SERVICE_ROLE_KEY }}
SUPABASE_BUCKET_NAME: ${{ inputs.SUPABASE_BUCKET_NAME }}
MAPBOXUSERNAME: ${{ inputs.MAPBOXUSERNAME }}
MAPBOXTOKEN: ${{ inputs.MAPBOXTOKEN }}
MAPBOXTILESET: ${{ inputs.MAPBOXTILESET }}
MAPBOXLAYERNAME: ${{ inputs.MAPBOXLAYERNAME }}
LOGGING: ${{ inputs.LOGGING }}
DATABASE_URL: ${{ inputs.DATABASE_URL }}
SKIP_MAPBOX: ${{ inputs.SKIP_MAPBOX }}
LIMIT_DAYS: ${{ inputs.LIMIT_DAYS }}
SURROUNDING_SHAPE_FILE: ${{ inputs.SURROUNDING_SHAPE_FILE }}
WEATHER_HARVEST_LAT: ${{ inputs.WEATHER_HARVEST_LAT }}
WEATHER_HARVEST_LNG: ${{ inputs.WEATHER_HARVEST_LNG }}