Skip to content

Commit 07f92ba

Browse files
committed
[MOSIP-43017] Added chart-lint-publish.yml file
Signed-off-by: Prafulrakhade <prafulrakhade02@gmail.com>
1 parent 24054dd commit 07f92ba

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Validate / Publish helm charts
2+
3+
on:
4+
release:
5+
types: [published]
6+
pull_request:
7+
types: [opened, reopened, synchronize]
8+
paths:
9+
- 'helm/**'
10+
workflow_dispatch:
11+
inputs:
12+
IGNORE_CHARTS:
13+
description: 'Provide list of charts to be ignored separated by pipe(|)'
14+
required: false
15+
default: '""'
16+
type: string
17+
CHART_PUBLISH:
18+
description: 'Chart publishing to gh-pages branch'
19+
required: false
20+
default: 'NO'
21+
type: string
22+
options:
23+
- YES
24+
- NO
25+
INCLUDE_ALL_CHARTS:
26+
description: 'Include all charts for Linting/Publishing (YES/NO)'
27+
required: false
28+
default: 'NO'
29+
type: string
30+
options:
31+
- YES
32+
- NO
33+
push:
34+
branches:
35+
- '!release-branch'
36+
- '!master'
37+
- 1.*
38+
- 0.*
39+
- develop
40+
- release*
41+
paths:
42+
- 'helm/**'
43+
44+
jobs:
45+
chart-lint-publish:
46+
uses: mosip/kattu/.github/workflows/chart-lint-publish.yml@master
47+
with:
48+
CHARTS_DIR: ./helm
49+
CHARTS_URL: https://mosip.github.io/mosip-helm
50+
REPOSITORY: mosip-helm
51+
BRANCH: gh-pages
52+
INCLUDE_ALL_CHARTS: "${{ inputs.INCLUDE_ALL_CHARTS || 'NO' }}"
53+
IGNORE_CHARTS: "${{ inputs.IGNORE_CHARTS || '\"\"' }}"
54+
CHART_PUBLISH: "${{ inputs.CHART_PUBLISH || 'YES' }}"
55+
LINTING_CHART_SCHEMA_YAML_URL: "https://raw.githubusercontent.com/mosip/kattu/master/.github/helm-lint-configs/chart-schema.yaml"
56+
LINTING_LINTCONF_YAML_URL: "https://raw.githubusercontent.com/mosip/kattu/master/.github/helm-lint-configs/lintconf.yaml"
57+
LINTING_CHART_TESTING_CONFIG_YAML_URL: "https://raw.githubusercontent.com/mosip/kattu/master/.github/helm-lint-configs/chart-testing-config.yaml"
58+
LINTING_HEALTH_CHECK_SCHEMA_YAML_URL: "https://raw.githubusercontent.com/mosip/kattu/master/.github/helm-lint-configs/health-check-schema.yaml"
59+
DEPENDENCIES: "mosip,https://mosip.github.io/mosip-helm;"
60+
secrets:
61+
TOKEN: ${{ secrets.ACTION_PAT }}
62+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

0 commit comments

Comments
 (0)