You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-1Lines changed: 32 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,9 @@ With the following steps you can use this action in your repository:
16
16
Here is a list which variables can be given/used by the script. Some values can be set over action input values. If not, there's an environment variable to change the behavior.
|`config`| Define a Chart Releaser config file. | - |`${HOME}/cr.yaml`|
21
+
|`chartConfig`| Define filename for [Chart Configurations](#chart-configuration)| - |`.chart-config`|
21
22
|`chartRoot`| Define the root directory for your charts. If you have multiple chart directories I would advise doing multiple Github jobs. | - |`charts/`|
22
23
|`token`| Define a token which is used to create the chart releases and make changes to the gh-pages branch. |`$CR_TOKEN`| - |
23
24
|`repository`| Define where to index for the helm repository is published. This is mainly used to append new changes to an existing index via Chart Releaser. If no index is found, a new index will be created. |`$CR_REPO_URL`|`https://$(cut -d '/' -f 1 <<< $GITHUB_REPOSITORY).github.io/$(cut -d '/' -f 2 <<< $GITHUB_REPOSITORY)/`|
@@ -26,6 +27,36 @@ Here is a list which variables can be given/used by the script. Some values can
26
27
|`user`| Define the user name used for commits (pages update). |`$GIT_USER`|`$GITHUB_ACTOR`|
27
28
|`email`| Define the user email used for commits (pages update). |`$GIT_EMAIL`|`[email protected]`|
28
29
30
+
## Chart Configuration
31
+
32
+
Certain configurations are required on chart basis. With the following variables there's the possibility to change a single charts behavior. By default you can place these variables in a file called `.chart-config` in a chart directory.
33
+
34
+
| Variable | Description | Values |
35
+
| :------- | :---------- | :----- |
36
+
|`DISABLE`| Disables the chart during the release process. |`true`/`false`|
37
+
|`SCHEMA_GENERATE`| Generates Schema with [helm-schema-gen](https://github.com/karuppiah7890/helm-schema-gen) if no values.schema.json file exists. |`true`/`false`|
38
+
|`SCHEMA_VALUES`| Define the location of the values file within the chart directory, which is used to generate the values schema. |`values.yaml`|
39
+
|`SCHEMA_FORCE`| If there is already a `values.schema.json` file present in the chart directory, no schema will be generated. This option forces to generate the schema and overwrite present schema files. |`true`/`false`|
40
+
41
+
### Examples
42
+
43
+
Disable a chart (Won't create a new release)
44
+
45
+
**charts/sample-chart/.chart-config**
46
+
47
+
```
48
+
DISABLE=true
49
+
```
50
+
51
+
Enable enforced Schema Generation
52
+
53
+
**charts/sample-chart-2/.chart-config**
54
+
55
+
```
56
+
SCHEMA_GENERATE=true
57
+
SCHEMA_FORCE=true
58
+
```
59
+
29
60
## Usage
30
61
31
62
Using this action with it's default values is very easy. Just pass the Built-In `$GITHUB_TOKEN` environment variable and you are good to go:
0 commit comments