generated from cloudposse-github-actions/composite-template
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
action.yml
95 lines (95 loc) · 2.59 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: 'Deploy HelmFile'
description: 'Deploy on Kubernetes with HelmFile'
author: [email protected]
branding:
icon: 'file-text'
color: 'white'
inputs:
cluster:
description: Cluster name
required: true
aws-region:
description: AWS region
required: false
default: us-east-1
helmfile-path:
description: The path where lives the helmfile.
required: false
default: deploy
helmfile:
description: Helmfile name
required: false
default: helmfile.yaml
operation:
description: Operation with helmfiles. (valid options - `deploy`, `destroy`)
required: true
default: deploy
environment:
description: Helmfile environment
required: false
default: preview
gitref-sha:
description: Git SHA
required: false
default: ''
namespace:
description: Kubernetes namespace
required: true
image:
description: Docker image
required: true
image-tag:
description: Docker image tag
required: true
debug:
description: Debug mode
default: 'false'
required: false
release_label_name:
description: The name of the label used to describe the helm release
default: "release"
required: false
values_yaml:
description: YAML string with extra values to use in a helmfile deploy
required: false
helm_version:
description: Helm version
default: 3.11.1
helmfile_version:
description: Helmfile version
default: 0.143.5
kubectl_version:
description: Kubectl version
default: 1.26.3
chamber_version:
description: Kubectl version
default: 2.11.1
url-resource-type:
description: The type of the resource to get the URL from
required: false
default: 'ingress'
outputs:
webapp-url:
description: "Web Application url"
runs:
using: 'docker'
image: 'Dockerfile'
env:
AWS_REGION: ${{ inputs.aws-region }}
ENVIRONMENT: ${{ inputs.environment }}
HELM_VALUES_YAML: ${{ inputs.values_yaml }}
HELMFILE: ${{ inputs.helmfile }}
HELMFILE_PATH: ${{ inputs.helmfile-path }}
NAMESPACE: ${{ inputs.namespace }}
IMAGE_NAME: ${{ inputs.image }}
IMAGE_TAG: ${{ inputs.image-tag }}
OPERATION: ${{ inputs.operation }}
GITREF_SHA: ${{ inputs.gitref-sha }}
CLUSTER_NAME: ${{ inputs.cluster }}
HELM_DEBUG: ${{ inputs.debug }}
RELEASE_LABEL_NAME: ${{ inputs.release_label_name }}
KUBECTL_VERSION: ${{ inputs.kubectl_version }}
HELM_VERSION: ${{ inputs.helm_version }}
HELMFILE_VERSION: ${{ inputs.helmfile_version }}
CHAMBER_VERSION: ${{ inputs.chamber_version }}
URL_RESOURCE_TYPE: ${{ inputs.url-resource-type }}