-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
41 lines (41 loc) · 1.61 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
38
39
40
41
name: 'S3 Bucket Website Deploy'
description: 'Create a S3 bucket (if not existing), enable bucket website with given configuration and deploy your files into it.'
author: 'Matthias Prost'
inputs:
S3_ACCESS_KEY:
description: 'S3 access key'
required: true
S3_SECRET_KEY:
description: 'S3 secret key'
required: true
S3_ENDPOINT:
description: 'Endpoint of your S3 bucket. Ex: s3.fr-par.scw.cloud'
required: true
S3_REGION:
description: 'Region of your S3 bucket. Ex: fr-par'
required: true
BUCKET_NAME:
description: 'Enter a bucket name there. Bucket will be created if not existing.'
required: true
WEBSITE_CONFIG_PATH:
description: 'Root path of the file that contains configuration for bucket website, should be a .json. See example file in repository.'
required: false
default: '/s3-default-config-file/.bucket-website.json'
BUCKET_POLICY_CONFIG_PATH:
description: 'Root path of the file that contains configuration bucket website policies, should be a .json.tql. See example file in repository'
required: false
default: '/s3-default-config-file/.bucket-policy.json.tpl'
SOURCE_DIRECTORY:
description: 'Root path of the source folder that will be sync with your bucket.'
required: false
default: '.'
SYNC_ARGS:
description: 'Arguments you can add to S3 sync command.'
required: false
default: '--delete'
COMPRESS_TOOL:
description: 'Compress your files from SOURCE_DIRECTORY before uploading them into your bucket. Only gzip available, if empty no compression is done.'
required: false
runs:
using: docker
image: Dockerfile