-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (43 loc) · 1.39 KB
/
deploy.staging.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: Deploy Staging
on:
push:
branches:
- develop
- tinkering
jobs:
setup_env:
uses: ./.github/workflows/setup-env.yml
with:
ENVIRONMENT: staging
TILES_URL: staging-tiles.radverkehrsatlas.de
CACHELESS_URL: staging-cacheless.radverkehrsatlas.de
NEXT_PUBLIC_APP_ORIGIN: https://staging.radverkehrsatlas.de
NEXT_PUBLIC_APP_ENV: staging
NEXT_PUBLIC_OSM_API_URL: https://master.apis.dev.openstreetmap.org/api/0.6
APP_URL: staging.radverkehrsatlas.de
secrets: inherit
restart_services:
uses: ./.github/workflows/restart-services.yml
needs: setup_env
with:
ENVIRONMENT: staging
secrets: inherit
deploy_processing:
uses: ./.github/workflows/deploy-processing.yml
needs: restart_services
with:
ENVIRONMENT: staging
TILES_URL: staging-tiles.radverkehrsatlas.de
CONFIG_CHANGED: ${{ needs.restart_services.outputs.CHANGES == 'true' }}
secrets: inherit
deploy_app:
uses: ./.github/workflows/deploy-app.yml
needs: restart_services
with:
ENVIRONMENT: staging
NEXT_PUBLIC_APP_ORIGIN: https://staging.radverkehrsatlas.de
NEXT_PUBLIC_APP_ENV: staging
NEXT_PUBLIC_OSM_API_URL: https://master.apis.dev.openstreetmap.org/api/0.6
APP_URL: staging.radverkehrsatlas.de
CONFIG_CHANGED: ${{ needs.restart_services.outputs.CHANGES == 'true' }}
secrets: inherit