-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.05 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
name: 'Deploy Flow'
on:
workflow_call:
inputs:
environment:
description: 'App Env'
required: false
type: string
default: devel
working_directory:
description: 'App Path'
required: false
type: string
default: codebase/rdicidr-0.1.0
permissions:
id-token: write
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
steps:
- name: Configure AWS
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_TF_ROLE }}
aws-region: us-east-1
- name: Checkout code
uses: actions/checkout@v4
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: build-artifact-${{ inputs.environment }}
path: ${{ inputs.working_directory }}/build
- name: Deploy React App
working-directory: ${{ inputs.working_directory }}
run: |
aws s3 sync ./build s3://fsl-challenge-bucket