-
Notifications
You must be signed in to change notification settings - Fork 7
82 lines (71 loc) · 2.05 KB
/
build_and_deploy_i18n.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
name: Build and deploy i18n
on:
push:
branches:
- develop
- hotfix/**
- feature/**-i18n
- release/**
jobs:
call_build:
uses: ./.github/workflows/build.yml
with:
build_script: build-unminified-legacy
call_unit_test:
uses: ./.github/workflows/unit_test.yml
needs: call_build
call_misc_tests:
uses: ./.github/workflows/miscellaneous_tests.yml
call_format_branch_name:
uses: ./.github/workflows/format_branch_name.yml
call_acceptance:
uses: ./.github/workflows/acceptance.yml
needs: call_build
call_build_locales:
uses: ./.github/workflows/build_i18n.yml
call_deploy:
if: github.ref_name != 'develop'
needs:
- call_unit_test
- call_format_branch_name
- call_acceptance
- call_misc_tests
- call_build_locales
uses: ./.github/workflows/deploy.yml
with:
directory: dev/${{ needs.call_format_branch_name.outputs.formatted_branch }}
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
call_deploy_canary:
if: github.ref_name == 'develop'
needs:
- call_unit_test
- call_format_branch_name
- call_acceptance
- call_misc_tests
- call_build_locales
uses: ./.github/workflows/deploy.yml
with:
directory: canary/latest
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
call_deploy_canary_sha:
if: github.ref_name == 'develop'
needs:
- call_unit_test
- call_format_branch_name
- call_acceptance
- call_misc_tests
- call_build_locales
uses: ./.github/workflows/deploy.yml
with:
directory: canary/${{ github.sha }}
cache-control: 'max-age=31536000'
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
concurrency:
group: ci-build-and-deploy-i18n-${{ github.ref }}-1
cancel-in-progress: true