-
Notifications
You must be signed in to change notification settings - Fork 33
43 lines (41 loc) · 1.75 KB
/
rain.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
name: DWD Radolan Harvester Unified
on:
workflow_dispatch:
inputs:
environment:
description: "Environment (e.g. development or production)"
required: true
type: string
repository_dispatch:
# This action can be triggered via Github API webook (see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#repository_dispatch)
types: [radolan_cron]
jobs:
rain:
# Using the payload of the repository_dispatch webhook to specify the environment
environment: "${{ github.event.inputs.environment || github.event.client_payload.environment }}"
runs-on: ubuntu-latest
name: Aggregate rain data from DWD radolan
steps:
- name: Harvester
uses: docker://technologiestiftung/giessdenkiez-de-dwd-harvester:v2.8.0
id: harvester
env:
PG_SERVER: ${{ secrets.PG_SERVER }}
PG_PORT: ${{ secrets.PG_PORT }}
PG_USER: ${{ secrets.PG_USER }}
PG_PASS: ${{ secrets.PG_PASS }}
PG_DB: ${{ secrets.PG_DB }}
SUPABASE_URL: ${{ vars.SUPABASE_URL }}
SUPABASE_BUCKET_NAME: ${{ vars.SUPABASE_DATA_ASSETS_BUCKET }}
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
OUTPUT: "True"
LOGGING: "INFO"
MAPBOXUSERNAME: ${{ secrets.MAPBOXUSERNAME }}
MAPBOXTOKEN: ${{ secrets.MAPBOXTOKEN }}
MAPBOXTILESET: ${{ secrets.MAPBOXTILESET }}
MAPBOXLAYERNAME: ${{ secrets.MAPBOXLAYERNAME }}
SKIP_MAPBOX: "False"
LIMIT_DAYS: ${{ vars.LIMIT_DAYS }}
SURROUNDING_SHAPE_FILE: ${{ vars.SURROUNDING_SHAPE_FILE }}
WEATHER_HARVEST_LAT: ${{ vars.WEATHER_HARVEST_LAT }}
WEATHER_HARVEST_LNG: ${{ vars.WEATHER_HARVEST_LNG }}