-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
37 lines (37 loc) · 1.09 KB
/
action.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
name: 'Deploy Web App to AWS'
description: 'Deploys a webapp to an AWS s3 bucket and then invalidates the cloudfront entry'
author: 'Peter Ukonu'
branding:
icon: 'arrow-up-circle'
color: 'blue'
inputs:
build_path:
description: "The build path to deploy to s3"
required: true
bucket_name:
description: "The AWS S3 bucket you will like to deployt to"
required: true
bucket_key:
description: "The path of the folder you will to deploy to within the S3 bucket"
required: true
default: "/"
distribution_invalidation_path:
description: "The path in cloudfront to invalidate"
required: false
default: "/*"
empty_bucket:
description: "Empty the bucket before uploading new content"
required: false
default: false
outputs:
aws-deploy-output:
description: 'A json output from AWS on the deployment'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.build_path }}
- ${{ inputs.bucket_name }}
- ${{ inputs.bucket_key }}
- ${{ inputs.distribution_invalidation_path }}
- ${{ inputs.empty_bucket }}