diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..c1c9321 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,44 @@ +--- +name: lint + +on: + + pull_request: + branches: + - master + paths: + - 'charts/**' + - '.github/workflows/lint.yml' + push: + branches: + - master + paths: + - 'charts/**' + - '.github/workflows/lint.yml' + schedule: + - cron: "0 5 * * 5" + +jobs: + + lint: + + name: lint + runs-on: ubuntu-latest + steps: + + - name: check out the codebase + uses: actions/checkout@v2 + + - name: install kubectl + uses: azure/setup-kubectl@v3 + + - uses: actions/setup-python@v4 + with: + python-version: '3.9' + check-latest: true + + - name: set up chart-testing + uses: helm/chart-testing-action@v2.3.1 + + - name: lint charts + run: ct lint --chart-dirs $GITHUB_WORKSPACE/charts --all --validate-maintainers=false diff --git a/.github/workflows/molecule.yml b/.github/workflows/molecule.yml index 78bfd6c..a8a34f7 100644 --- a/.github/workflows/molecule.yml +++ b/.github/workflows/molecule.yml @@ -4,29 +4,18 @@ name: molecule on: pull_request: + paths: + - 'charts/**' push: branches: - master + paths: + - 'charts/**' schedule: - cron: "0 5 * * 5" jobs: - lint: - - name: lint - runs-on: ubuntu-latest - steps: - - - name: check out the codebase - uses: actions/checkout@v2 - - - name: install kubectl - uses: azure/setup-kubectl@v3 - - - name: lint chart - run: helm lint charts/dataplane - molecule: name: molecule diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d1d0a91 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,36 @@ +--- +name: release chart + +on: + + pull_request: + branches: + - master + paths: + - 'charts/**' + - '.github/workflows/release.yml' + push: + branches: + - master + paths: + - 'charts/**' + - '.github/workflows/release.yml' + +jobs: + + release: + runs-on: ubuntu-latest + steps: + + - name: checkout + uses: actions/checkout@v1 + + - name: configure git + run: | + git config user.name "$GITHUB_ACTOR" + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + + - name: release chart + uses: helm/chart-releaser-action@v1.5.0 + env: + CR_TOKEN: '${{ secrets.GH_TOKEN }}' diff --git a/charts/dataplane/Chart.yaml b/charts/dataplane/Chart.yaml index 96d03d9..36a53e1 100644 --- a/charts/dataplane/Chart.yaml +++ b/charts/dataplane/Chart.yaml @@ -22,4 +22,4 @@ version: 0.0.6 # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "0.0.6" +appVersion: "0.0.8" diff --git a/charts/dataplane/values.yaml b/charts/dataplane/values.yaml index f822cdc..973e3a4 100644 --- a/charts/dataplane/values.yaml +++ b/charts/dataplane/values.yaml @@ -13,8 +13,8 @@ util: cdc: - postgres: [] - mysql: [] + postgres: [] + mysql: [] strimzi: