forked from raulanatol/aws-s3-docker-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
67 lines (56 loc) · 1.58 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
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: AWS S3 bucket synchronization
description: Synchronize S3 bucket files
author: raulanatol
branding:
color: green
icon: upload-cloud
inputs:
AWS_ACCESS_KEY_ID:
description: AWS ACCESS KEY
required: true
AWS_SECRET_ACCESS_KEY:
description: AWS SECRET KEY
required: true
AWS_REGION:
description: AWS REGION
required: true
default: us-west-2
AWS_BUCKET_NAME:
description: Name of the bucket
required: true
SOURCE:
description: Source of copying
required: true
TARGET:
description: Target in the AWS S3
required: true
WITH_DELETE:
description: If defined the s3 sync is executed with the --delete flag
required: false
EXCLUDE:
description: If defined the s3 sync is executed with the --exclude flag
required: false
WITH_CLOUD_FRONT_INVALIDATION:
description: If defined a cloudfront invalidation will be executed
required: false
AWS_CLOUDFRONT_DISTRIBUTION_ID:
description: Id of the cloudfront distribution
required: false
AWS_CLOUDFRONT_INVALIDATION_PATH:
description: Path for the cloudfront invalidation
required: false
runs:
using: docker
image: Dockerfile
args:
- ${{ inputs.AWS_ACCESS_KEY_ID }}
- ${{ inputs.AWS_SECRET_ACCESS_KEY }}
- ${{ inputs.AWS_REGION }}
- ${{ inputs.AWS_BUCKET_NAME }}
- ${{ inputs.SOURCE }}
- ${{ inputs.TARGET }}
- ${{ inputs.WITH_DELETE }}
- ${{ inputs.EXCLUDE }}
- ${{ inputs.WITH_CLOUD_FRONT_INVALIDATION }}
- ${{ inputs.AWS_CLOUDFRONT_DISTRIBUTION_ID }}
- ${{ inputs.AWS_CLOUDFRONT_INVALIDATION_PATH }}