-
Notifications
You must be signed in to change notification settings - Fork 3
29 lines (28 loc) · 926 Bytes
/
setup.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
name: 'Setup'
on:
push:
tags:
- v*
jobs:
deploy-dev:
if: contains(github.ref, 'dev')
name: 'Call dev deployment workflow'
uses: ./.github/workflows/deploy.yml
with:
aws-region: us-east-1
s3-bucket-name: ips-viewer-app
secrets:
aws-assume-role: "${{ secrets.GH_AWS_SERVICE_ROLE_DEV }}"
aws-access-key-id: "${{ secrets.TERRAFORM_AWS_ACCESS_KEY_ID }}"
aws-secret-access-key: "${{ secrets.TERRAFORM_AWS_SECRET_ACCESS_KEY }}"
deploy-prod:
if: contains(github.ref, 'prod')
name: 'Call prod deployment workflow'
uses: ./.github/workflows/deploy.yml
with:
aws-region: us-east-1
s3-bucket-name: ips-viewer-app-prod
secrets:
aws-assume-role: "${{ secrets.GH_AWS_SERVICE_ROLE_PROD }}"
aws-access-key-id: "${{ secrets.TERRAFORM_AWS_ACCESS_KEY_ID }}"
aws-secret-access-key: "${{ secrets.TERRAFORM_AWS_SECRET_ACCESS_KEY }}"