chore(deps): update dependency botocore to v1.36.15 #496
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DWD harvester (test mode) | |
on: | |
push: | |
paths: | |
- 'dwd-harvester/**' | |
branches: | |
- master | |
- staging | |
- master-magdeburg | |
pull_request: | |
branches: | |
- master | |
- staging | |
- master-magdeburg | |
workflow_dispatch: | |
env: | |
PG_SERVER: localhost | |
PG_PORT: "54322" | |
PG_USER: postgres | |
PG_PASS: postgres | |
PG_DB: postgres | |
SUPABASE_URL: ${{ vars.SUPABASE_URL_TEST }} | |
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY_TEST }} | |
SUPABASE_BUCKET_NAME: ${{ vars.SUPABASE_BUCKET_NAME_TEST }} | |
OUTPUT: "True" | |
MAPBOXUSERNAME: "123" | |
MAPBOXTOKEN: "456" | |
MAPBOXTILESET: "xyz" | |
MAPBOXLAYERNAME: "abc" | |
LOGGING: INFO | |
jobs: | |
test-harvest: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
steps: | |
- name: Get the source | |
uses: actions/checkout@v4 | |
- name: Get the source for the api master-magdeburg | |
uses: actions/checkout@v4 | |
if: github.event.pull_request.base.ref == 'master-magdeburg' || github.ref == 'refs/heads/master-magdeburg' | |
with: | |
repository: code-for-magdeburg/magdeburggiesst-postgres-api | |
path: api | |
ref: master-magdeburg | |
- name: Get the source for the api staging | |
uses: actions/checkout@v4 | |
if: github.event.pull_request.base.ref == 'staging' || github.ref == 'refs/heads/staging' | |
with: | |
repository: code-for-magdeburg/magdeburggiesst-postgres-api | |
path: api | |
ref: staging | |
- name: Get the source for the api master | |
uses: actions/checkout@v4 | |
if: github.event.pull_request.base.ref == 'master' || github.ref == 'refs/heads/master' | |
with: | |
repository: code-for-magdeburg/magdeburggiesst-postgres-api | |
path: api | |
- uses: supabase/setup-cli@v1 | |
with: | |
version: 1.33.0 | |
- name: build the harvester | |
run: cd dwd-harvester/harvester && docker build --tag "${GITHUB_REPOSITORY}:${GITHUB_REF##*/}" . | |
- name: Start the api | |
run: cd api && supabase start && cd .. | |
- name: run the harvester | |
run: > | |
docker run --env PG_SERVER='0.0.0.0' \ | |
--env PG_DB \ | |
--env PG_PORT \ | |
--env PG_USER \ | |
--env PG_PASS \ | |
--env SUPABASE_URL \ | |
--env SUPABASE_SERVICE_ROLE_KEY \ | |
--env SUPABASE_BUCKET_NAME \ | |
--env MAPBOXTOKEN \ | |
--env MAPBOXUSERNAME \ | |
--env LOGGING \ | |
--env OUTPUT \ | |
--network host \ | |
"${GITHUB_REPOSITORY}:${GITHUB_REF##*/}" | |
- name: stop the api | |
run: cd api && supabase stop && cd .. |