-
Notifications
You must be signed in to change notification settings - Fork 7
88 lines (76 loc) · 2.38 KB
/
build_and_deploy_hold.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Build and deploy with a hold state
on:
push:
tags:
- 'v*'
jobs:
call_build:
uses: ./.github/workflows/build_i18n.yml
with:
cloud_region: US
call_build_for_eu:
uses: ./.github/workflows/build_i18n.yml
with:
cloud_region: EU
call_unit_test:
uses: ./.github/workflows/unit_test.yml
needs: call_build
call_misc_tests:
uses: ./.github/workflows/miscellaneous_tests.yml
call_acceptance:
uses: ./.github/workflows/acceptance.yml
needs: call_build
call_extract_versions:
uses: ./.github/workflows/extract_versions.yml
call_should_deploy_major_version:
uses: ./.github/workflows/should_deploy_major_version.yml
call_deploy_full_version:
needs:
- call_build_for_eu
- call_unit_test
- call_acceptance
- call_extract_versions
- call_misc_tests
uses: ./.github/workflows/deploy_hold.yml
with:
directory: ${{ github.ref_name }}
cache-control: 'max-age=31536000'
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
call_deploy_major_version:
needs:
- call_build_for_eu
- call_unit_test
- call_acceptance
- call_extract_versions
- call_misc_tests
- call_should_deploy_major_version
if: ${{ needs.call_should_deploy_major_version.outputs.should_deploy_major_version }}
uses: ./.github/workflows/deploy_hold.yml
with:
directory: ${{ needs.call_extract_versions.outputs.major_version }}
cache-control: 'max-age=43200'
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
call_deploy_minor_version:
needs:
- call_build_for_eu
- call_unit_test
- call_acceptance
- call_extract_versions
- call_misc_tests
uses: ./.github/workflows/deploy_hold.yml
with:
directory: ${{ needs.call_extract_versions.outputs.minor_version }}
cache-control: 'max-age=43200'
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
concurrency:
group: ci-build-and-deploy-hold-${{ github.ref }}-1
cancel-in-progress: true