-
Notifications
You must be signed in to change notification settings - Fork 7
90 lines (79 loc) · 2.59 KB
/
build_and_deploy_search_bar.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
89
90
name: Build and deploy search bar
on:
push:
tags:
- 'search-bar-v*'
jobs:
call_build:
uses: ./.github/workflows/build_i18n.yml
with:
build_script: build-search-bar-only
cloud_region: US
call_build_for_eu:
uses: ./.github/workflows/build_i18n.yml
with:
build_script: build-search-bar-only
cloud_region: EU
call_misc_tests:
uses: ./.github/workflows/miscellaneous_tests.yml
call_acceptance_search_bar:
uses: ./.github/workflows/acceptance_search_bar.yml
needs: call_build
call_extract_versions:
uses: ./.github/workflows/extract_versions.yml
with:
ignore_prefix: search-bar-
call_should_deploy_major_version:
uses: ./.github/workflows/should_deploy_major_version.yml
with:
ignore_prefix: search-bar-
call_deploy_full_version:
needs:
- call_build_for_eu
- call_acceptance_search_bar
- call_extract_versions
- call_misc_tests
uses: ./.github/workflows/deploy_hold.yml
with:
bucket: answers-search-bar
directory: ${{ needs.call_extract_versions.outputs.full_version }}
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_acceptance_search_bar
- 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:
bucket: answers-search-bar
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_acceptance_search_bar
- call_extract_versions
- call_misc_tests
uses: ./.github/workflows/deploy_hold.yml
with:
bucket: answers-search-bar
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-search-bars-${{ github.ref }}-1
cancel-in-progress: true