-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (50 loc) · 1.41 KB
/
release.yml
File metadata and controls
51 lines (50 loc) · 1.41 KB
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
# Deploys all the resources to production environment
name: Production Release
on:
release:
types: [ released ]
jobs:
bd-deployment:
name: Database Deployment
uses: ./.github/workflows/db-prod.yml
secrets: inherit
bd-update:
name: Database Update
needs: bd-deployment
uses: ./.github/workflows/db-update-prod.yml
secrets: inherit
batch-deployment:
name: Batch Processes Deployment
needs: bd-update
uses: ./.github/workflows/datasets-batch-deployer-prod.yml
secrets: inherit
api-deployment:
name: API Deployment
needs: batch-deployment
uses: ./.github/workflows/api-prod.yml
secrets: inherit
integration-tests:
uses: ./.github/workflows/integration-tests.yml
needs: api-deployment
with:
API_URL: "https://api.mobilitydatabase.org"
ENVIRONMENT: 'prod'
secrets:
REFRESH_TOKEN: ${{ secrets.PROD_API_TEST_REFRESH_TOKEN }}
web-deployment:
name: Web Deployment
needs: batch-deployment
uses: ./.github/workflows/web-prod.yml
secrets: inherit
notify-slack-on-failure:
needs: [web-deployment, integration-tests]
if: failure()
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Notify Slack
uses: ./.github/actions/notify-slack
with:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
PRIORITY: "high"