forked from bsord/helm-push
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
71 lines (71 loc) · 2.34 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
# action.yml
name: 'Helm Push'
description: 'Pushes a local chart to a ChartMuseum or OCI compatible registry. Supports token based auth and Chart.yaml version override.'
branding:
color: 'green'
icon: 'upload-cloud'
inputs:
access-token:
description: 'API Token with read/write permissions to the helm registry'
required: false
default: ''
username:
description: 'Username read/write permissions to the helm registry'
required: false
default: ''
password:
description: 'Password with read/write permissions to the helm registry'
required: false
default: ''
registry-url:
description: 'Repository url'
required: true
default: ''
chart-folder:
description: 'Relative path to chart folder'
required: false
default: 'chart'
version:
description: 'Chart Version'
required: false
default: ''
appVersion:
description: 'App Version'
required: false
default: ''
force:
description: 'Whether or not to override existing chart with same version'
required: false
default: 'false'
update-dependencies:
description: "Whether or not to update dependencies before packaging"
required: false
default: "false"
useOCIRegistry:
description: 'If publishing to big cloud registries, utilizing OCI container spec for helm packages, set to true'
required: false
default: 'false'
add-repositories:
description: 'Optionally add list of Helm Repositories to add running `helm repo add $args` for each line'
required: false
# valid list of args for `helm repo add $args` each line maps to repo add e.g.
# add-repositories: |
# stable https://charts.helm.sh/stable
# private https//private.internal --username private --password 'bulls eye'
# ...
default: ''
runs:
using: 'docker'
image: 'Dockerfile'
env:
CHART_FOLDER: ${{ inputs.chart-folder }}
FORCE: ${{ inputs.force }}
REGISTRY_URL: ${{ inputs.registry-url }}
REGISTRY_ACCESS_TOKEN: ${{ inputs.access-token }}
REGISTRY_USERNAME: ${{ inputs.username }}
REGISTRY_PASSWORD: ${{ inputs.password }}
REGISTRY_VERSION: ${{ inputs.version }}
REGISTRY_APPVERSION: ${{ inputs.appVersion }}
USE_OCI_REGISTRY: ${{ inputs.useOCIRegistry }}
UPDATE_DEPENDENCIES: ${{ inputs.update-dependencies }}
ADD_REPOSITORIES: ${{ inputs.add-repositories }}