-
Notifications
You must be signed in to change notification settings - Fork 2
72 lines (63 loc) · 2.04 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
name: Build and deploy with a hold state
on:
push:
tags:
- "v*"
workflow_dispatch: # allow manual run
jobs:
call_build_US:
uses: ./.github/workflows/build.yml
with:
region: US
call_build_EU:
uses: ./.github/workflows/build.yml
with:
region: EU
call_extract_versions:
uses: ./.github/workflows/extract_versions.yaml
call_should_deploy_major_version:
uses: ./.github/workflows/should_deploy_major_version.yml
call_deploy_full_version:
needs:
- call_build_US
- call_build_EU
- call_extract_versions
uses: ./.github/workflows/deploy_hold.yml
with:
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_US
- call_build_EU
- call_extract_versions
- 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_US
- call_build_EU
- call_extract_versions
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