-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (56 loc) · 1.76 KB
/
deploy-modio-docs.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
name: Copy docs into modio-docs
on:
push:
branches:
- 'master'
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
copy-into-modio-docs-staging:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install gems
run: |
sudo gem install bundler
bundle install
- name: Configure AWS Credentials for api-staging
env:
AWS_REGION : ap-southeast-2
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.RESTAPI_STAGING_AWS_ROLE }}
role-session-name: api-staging-github-action
aws-region: ${{ env.AWS_REGION }}
- name: Deploy build into modio-docs staging (temp solution)
env:
ENVIRONMENT: staging
AWS_REGION : ap-southeast-2
run: |
make deploy-into-modio-docs
copy-into-modio-docs-prod:
runs-on: ubuntu-latest
needs: [copy-into-modio-docs-staging]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install gems
run: |
sudo gem install bundler
bundle install
- name: Configure AWS Credentials for api-prod
env:
AWS_REGION : us-west-2
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.RESTAPI_PROD_AWS_ROLE }}
role-session-name: api-staging-github-action
aws-region: ${{ env.AWS_REGION }}
- name: Deploy build into modio-docs prod (temp solution)
env:
ENVIRONMENT: prod
AWS_REGION : us-west-2
run: |
make deploy-into-modio-docs