-
Notifications
You must be signed in to change notification settings - Fork 23
49 lines (47 loc) · 1.48 KB
/
deploy-portal-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
41
42
43
44
45
46
47
48
49
name: Deploy a portal to production
on:
workflow_dispatch:
inputs:
portal-name:
type: choice
description: Which portal to deploy
options:
- adknowledgeportal
- arkportal
- bsmn
- cancercomplexity
- challengeportal
- digitalhealth
- elportal
- genie
- nf
- stopadportal
tag:
required: true
type: string
description: Which tag or branch to deploy from
jobs:
build-and-deploy:
name: build-and-deploy
runs-on: ubuntu-latest
# Allow OIDC Integration (so we can assume the AWS role to deploy)
permissions:
id-token: write
contents: read
steps:
- name: checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.tag }}
- uses: ./.github/actions/pnpm-setup-action
- name: Assume AWS Role
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::797640923903:role/sagebase-github-oidc-sage-bionetworks-web-monorepo-infra
role-session-name: GitHubActions-${{ github.repository_owner }}-${{ github.event.repository.name }}-${{ github.run_id }}
role-duration-seconds: 1200
- name: setup-outputbucket-prod
run: |
chmod +x apps/synapse-portal-framework/run.sh
./apps/synapse-portal-framework/run.sh WARNING-push-production ${{ inputs.portal-name }}