-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (47 loc) · 1.15 KB
/
deploy_pipeline.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
name: Deploy Pipeline
on:
push:
branches:
- main
concurrency:
group: deploy-pipeline
jobs:
run_tests:
uses: ./.github/workflows/run_tests.yml
secrets: inherit
build_frontend_assets:
strategy:
matrix:
env: [dev, test, impl, prod]
uses: ./.github/workflows/build_frontend_assets.yml
with:
env: ${{ matrix.env }}
secrets: inherit
build_application_images:
uses: ./.github/workflows/build_application_images.yml
needs: run_tests
secrets: inherit
deploy_dev:
needs: [build_application_images, build_frontend_assets]
uses: ./.github/workflows/deploy_to_environment.yml
with:
env: dev
secrets: inherit
deploy_test:
needs: [build_application_images, build_frontend_assets]
uses: ./.github/workflows/deploy_to_environment.yml
with:
env: test
secrets: inherit
deploy_impl:
needs: [deploy_dev, deploy_test]
uses: ./.github/workflows/deploy_to_environment.yml
with:
env: impl
secrets: inherit
deploy_prod:
needs: deploy_impl
uses: ./.github/workflows/deploy_to_environment.yml
with:
env: prod
secrets: inherit