-
Notifications
You must be signed in to change notification settings - Fork 470
63 lines (57 loc) · 2.16 KB
/
deploy.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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Deploy Demo App Workflow
on:
push:
branches: [ main, 'release-**.x' ]
permissions:
id-token: write # This is required for requesting the JWT
jobs:
deploy_chime_sdk_demo:
name: Deploy Meeting and Meeting Readiness Checker Demos - Media Prod
runs-on: ubuntu-latest
env:
AWS_DEFAULT_REGION: us-east-1
AWS_DEFAULT_OUTPUT: text
NAME: DEMO
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME_SDK_DEV }}
role-session-name: deploy-demo-app
aws-region: us-east-1
- name: Checkout Package
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install SAM CLI
run: script/github-action-awscli-installation
- name: Run Deployment Script
if: ${{ github.ref == 'refs/heads/main' }}
run: script/deploy-canary-demo
deploy_chime_sdk_demo_gamma:
name: Deploy Meeting and Meeting Readiness Checker Demos - Media Gamma
runs-on: ubuntu-latest
env:
AWS_DEFAULT_REGION: us-east-1
AWS_DEFAULT_OUTPUT: text
NAME: GAMMA
GAMMA_CHIME_ENDPOINT_US_EAST_1: ${{secrets.GAMMA_CHIME_ENDPOINT_US_EAST_1}}
GAMMA_CHIME_SERVICE_PRINCIPAL: ${{secrets.GAMMA_CHIME_SERVICE_PRINCIPAL}}
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME_SDK_DEV }}
role-session-name: deploy-demo-app
aws-region: us-east-1
- name: Checkout Package
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install SAM CLI
run: script/github-action-awscli-installation
- name: Run Deployment Script
if: ${{ github.ref == 'refs/heads/main' }}
run: script/deploy-canary-demo