forked from Sage-Bionetworks/synapse-web-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.26 KB
/
deploy-app-prod.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
name: Deploy an app to production
on:
workflow_dispatch:
inputs:
app-name:
type: choice
description: Which app to deploy
options:
- SageAccountWeb
- synapse-oauth-signin
tag:
type: string
description: Which tag to deploy from
jobs:
build-and-deploy-sage-account-web:
if: ${{ inputs.app-name == 'SageAccountWeb' }}
permissions:
id-token: write
contents: read
uses: ./.github/workflows/build-and-deploy-app.yml
with:
app-name: SageAccountWeb
branch-or-tag: ${{ inputs.tag }}
bucket-name: prod.accounts.synapse.org
cfdist-id: E7COI4Z95FFZQ
deployment-role-arn: arn:aws:iam::797640923903:role/sagebase-github-oidc-sage-bionetworks-web-monorepo-infra
build-and-deploy-synapse-oauth-signin:
if: ${{ inputs.app-name == 'synapse-oauth-signin' }}
permissions:
id-token: write
contents: read
uses: ./.github/workflows/build-and-deploy-app.yml
with:
app-name: synapse-oauth-signin
branch-or-tag: ${{ inputs.tag }}
bucket-name: prod-signin-synapse-websitebucket-u91v422hx5bs
cfdist-id: E1HPVCTTKTU4MN
deployment-role-arn: arn:aws:iam::325565585839:role/sagebase-github-oidc-synapseprod-web-monorepo-infra