mirror of
https://github.com/bitnami/charts.git
synced 2026-02-10 20:27:38 +08:00
Add support for helm lint and helm install in PRs via GH Actions (#2721)
This commit is contained in:
committed by
GitHub
parent
12cfc38cbc
commit
5ed97f0c1a
12
.github/ct-install.yaml
vendored
Normal file
12
.github/ct-install.yaml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
chart-dirs:
|
||||
- bitnami
|
||||
chart-repos:
|
||||
- bitnami=https://charts.bitnami.com/bitnami
|
||||
debug: true
|
||||
excluded-charts:
|
||||
- common
|
||||
- kubeapps
|
||||
- kibana
|
||||
- kong
|
||||
- mariadb-galera
|
||||
remote: origin
|
||||
4
ct.yaml → .github/ct-lint.yaml
vendored
4
ct.yaml → .github/ct-lint.yaml
vendored
@@ -2,9 +2,9 @@ chart-dirs:
|
||||
- bitnami
|
||||
chart-repos:
|
||||
- bitnami=https://charts.bitnami.com/bitnami
|
||||
check-version-increment: true
|
||||
debug: true
|
||||
remote: origin
|
||||
validate-chart-schema: true
|
||||
validate-maintainers: true
|
||||
debug: true
|
||||
validate-yaml: true
|
||||
check-version-increment: true
|
||||
21
.github/workflows/lint-test.yaml
vendored
21
.github/workflows/lint-test.yaml
vendored
@@ -3,7 +3,7 @@ name: Lint and Test Charts
|
||||
on: pull_request
|
||||
|
||||
jobs:
|
||||
lint-test:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -13,7 +13,24 @@ jobs:
|
||||
run: git fetch --prune --unshallow
|
||||
|
||||
- name: Run chart-testing (lint)
|
||||
id: lint
|
||||
uses: helm/chart-testing-action@v1.0.0-rc.2
|
||||
with:
|
||||
config: .github/ct-lint.yaml
|
||||
command: lint
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Fetch history
|
||||
run: git fetch --prune --unshallow
|
||||
|
||||
- name: Create kind cluster
|
||||
uses: helm/kind-action@v1.0.0-rc.1
|
||||
|
||||
- name: Run chart-testing (install)
|
||||
uses: helm/chart-testing-action@v1.0.0-rc.2
|
||||
with:
|
||||
config: .github/ct-install.yaml
|
||||
command: install
|
||||
|
||||
@@ -28,10 +28,11 @@ When submitting a PR make sure that it:
|
||||
|
||||
### PR Approval and Release Process
|
||||
|
||||
1. Changes are manually reviewed by Bitnami team members.
|
||||
2. Once the changes are accepted, the PR is tested into the CI pipeline, the chart is installed and tested on top of different k8s platforms.
|
||||
3. If everything works fine, the `bitnami-bot` will add a new commit to the PR updating all the Docker images tags and dependencies. If something fails, the review process continues.
|
||||
4. When the PR passes all tests it is merged in the GitHub master branch and the new version of the chart is pushed to the registry. Please note that may be a slight difference between the appearance of the code in GitHub and the chart in the registry.
|
||||
1. Changes are automatically linted and tested using the [`ct` tool](https://github.com/helm/chart-testing) as a [GitHub action](https://github.com/helm/chart-testing-action). Those tests are based on `helm install`, `helm lint` and `helm test` commands and provide quick feedback about the changes in the PR. For those tests, the chart is installed on top of [kind](https://github.com/kubernetes-sigs/kind) and this step is not blocking (as opposed to 3rd step).
|
||||
2. Changes are manually reviewed by Bitnami team members.
|
||||
3. Once the changes are accepted, the PR is tested into the Bitnami CI pipeline, the chart is installed and tested (verification and functional tests) on top of different k8s platforms.
|
||||
4. If everything works fine, the `bitnami-bot` will add a new commit to the PR updating all the Docker images tags and dependencies. If something fails, the review process continues.
|
||||
5. When the PR passes all tests it is merged in the GitHub master branch and the new version of the chart is pushed to the registry. Please note that may be a slight difference between the appearance of the code in GitHub and the chart in the registry.
|
||||
|
||||
### Adding a new chart to the repository
|
||||
|
||||
|
||||
2
bitnami/apache/ci/ct-values.yaml
Normal file
2
bitnami/apache/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/dokuwiki/ci/ct-values.yaml
Normal file
2
bitnami/dokuwiki/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/drupal/ci/ct-values.yaml
Normal file
2
bitnami/drupal/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/ghost/ci/ct-values.yaml
Normal file
2
bitnami/ghost/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/jasperreports/ci/ct-values.yaml
Normal file
2
bitnami/jasperreports/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/jenkins/ci/ct-values.yaml
Normal file
2
bitnami/jenkins/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/joomla/ci/ct-values.yaml
Normal file
2
bitnami/joomla/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/magento/ci/ct-values.yaml
Normal file
2
bitnami/magento/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/mediawiki/ci/ct-values.yaml
Normal file
2
bitnami/mediawiki/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/moodle/ci/ct-values.yaml
Normal file
2
bitnami/moodle/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/nginx-ingress-controller/ci/ct-values.yaml
Normal file
2
bitnami/nginx-ingress-controller/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/nginx/ci/ct-values.yaml
Normal file
2
bitnami/nginx/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/odoo/ci/ct-values.yaml
Normal file
2
bitnami/odoo/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/opencart/ci/ct-values.yaml
Normal file
2
bitnami/opencart/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/orangehrm/ci/ct-values.yaml
Normal file
2
bitnami/orangehrm/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/osclass/ci/ct-values.yaml
Normal file
2
bitnami/osclass/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/owncloud/ci/ct-values.yaml
Normal file
2
bitnami/owncloud/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/parse/ci/ct-values.yaml
Normal file
2
bitnami/parse/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/phabricator/ci/ct-values.yaml
Normal file
2
bitnami/phabricator/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/phpbb/ci/ct-values.yaml
Normal file
2
bitnami/phpbb/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
1
bitnami/postgresql-ha/ci/ct-values.yaml
Normal file
1
bitnami/postgresql-ha/ci/ct-values.yaml
Normal file
@@ -0,0 +1 @@
|
||||
fullnameOverride: test
|
||||
2
bitnami/prestashop/ci/ct-values.yaml
Normal file
2
bitnami/prestashop/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/redmine/ci/ct-values.yaml
Normal file
2
bitnami/redmine/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/suitecrm/ci/ct-values.yaml
Normal file
2
bitnami/suitecrm/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/tensorflow-resnet/ci/ct-values.yaml
Normal file
2
bitnami/tensorflow-resnet/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/testlink/ci/ct-values.yaml
Normal file
2
bitnami/testlink/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/tomcat/ci/ct-values.yaml
Normal file
2
bitnami/tomcat/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/wildfly/ci/ct-values.yaml
Normal file
2
bitnami/wildfly/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
2
bitnami/wordpress/ci/ct-values.yaml
Normal file
2
bitnami/wordpress/ci/ct-values.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user