forked from peymanmortazavi/eks-helm-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
81 lines (79 loc) · 2.57 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
68
69
70
71
72
73
74
75
76
77
78
79
80
# action.yml
name: 'EKS Helm Deploy'
description: 'Deploy a helm chart to EKS cluster.'
branding:
icon: anchor
color: yellow
inputs:
aws-secret-access-key:
description: 'AWS credentials used to login to eks.'
required: true
aws-access-key-id:
description: 'AWS credentials used to login to eks.'
required: true
aws-region:
description: 'AWS region to use (default: us-west-2)'
required: true
default: us-west-2
cluster-name:
description: 'EKS cluster name.'
required: true
cluster-role-arn:
description: 'EKS cluster admin role arn.'
required: false
config-files:
description: 'Comma separates list of helm values files.'
required: false
namespace:
description: 'Kubernetes namespace to use.'
required: false
values:
description: 'Comma separated list of value sets for helms. e.x: key1=value1,key2=value2'
required: false
name:
description: 'Helm release name.'
required: true
chart-path:
description: 'The path of the chart.'
required: true
default: 'helm/'
timeout:
description: 'Timeout for the job.'
required: true
default: 5m0s
dry-run:
description: 'Simulate an upgrade.'
required: false
diff:
description: "Run Helm Diff"
required: false
debug:
description: 'Enable verbose output'
required: false
uninstall:
description: 'Uninstall the release'
required: false
repository:
description: 'Download and install the chart from a repository. If this option is specified, chart becomes a path.'
required: false
default: ""
runs:
using: 'docker'
image: 'docker://ghcr.io/mirainc/eks-helm-deploy:main'
env:
AWS_REGION: ${{ inputs.aws-region }}
AWS_SECRET_ACCESS_KEY: ${{ inputs.aws-secret-access-key }}
AWS_ACCESS_KEY_ID: ${{ inputs.aws-access-key-id }}
CLUSTER_NAME: ${{ inputs.cluster-name }}
CLUSTER_ROLE_ARN: ${{ inputs.cluster-role-arn }}
DEBUG: ${{ inputs.debug }}
DEPLOY_CONFIG_FILES: ${{ inputs.config-files }}
DEPLOY_NAMESPACE: ${{ inputs.namespace }}
DEPLOY_VALUES: ${{ inputs.values }}
DEPLOY_NAME: ${{ inputs.name }}
DEPLOY_CHART_PATH: ${{ inputs.chart-path }}
DRY_RUN: ${{ inputs.dry-run }}
DIFF: ${{ inputs.diff }}
TIMEOUT: ${{ inputs.timeout }}
UNINSTALL: ${{ inputs.uninstall }}
REPOSITORY: ${{ inputs.repository }}