Skip to content

Commit

Permalink
Use shared helm flows (#109)
Browse files Browse the repository at this point in the history
* Use shared helm flows

* include changes to workflow in triggers

* update docs with latest helmdocs binary

* bump chart for doc change

* update docs for vesion bump...
bryopsida authored Sep 21, 2022

Verified

This commit was signed with the committer’s verified signature. The key has expired.
aitbw Angel Perez
1 parent 0b75339 commit 6278cff
Showing 8 changed files with 18 additions and 191 deletions.
4 changes: 0 additions & 4 deletions .github/ct.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/dependabot.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/helm-docs.sh

This file was deleted.

47 changes: 0 additions & 47 deletions .github/kubeval.sh

This file was deleted.

95 changes: 9 additions & 86 deletions .github/workflows/chart-qa.yml
Original file line number Diff line number Diff line change
@@ -1,91 +1,14 @@
name: Lint and Test Charts
name: Lint and Test Chart

on:
pull_request:
paths:
- 'charts/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
jobs:
lint-chart:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
with:
fetch-depth: 0
- name: Install Helm
uses: azure/[email protected]
with:
version: v3.7.1
- uses: actions/setup-python@b4fe97ecda6b7a5fcd2448cdbf6a8fc76b3bedb0
with:
python-version: 3.7
- name: Install chart-testing
uses: helm/chart-testing-action@09ed88797198755e5031f25be13da255e7e33aad
with:
version: v3.4.0
- name: Run lint
run: ct lint --config .github/ct.yaml
lint-docs:
runs-on: ubuntu-latest
needs: lint-chart
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- name: Run helm-docs
run: .github/helm-docs.sh
kubeval-chart:
runs-on: ubuntu-latest
needs:
- lint-chart
- lint-docs
strategy:
matrix:
k8s:
- v1.18.20
- v1.19.12
- v1.20.8
- v1.21.2
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
with:
fetch-depth: 0
- name: Run kubeval
env:
KUBERNETES_VERSION: ${{ matrix.k8s }}
run: .github/kubeval.sh
install-chart:
name: install-chart
runs-on: ubuntu-latest
needs:
- lint-chart
- lint-docs
- kubeval-chart
strategy:
matrix:
k8s:
- v1.18.19
- v1.19.11
- v1.20.7
- v1.21.2
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
with:
fetch-depth: 0

- name: Create kind ${{ matrix.k8s }} cluster
uses: helm/kind-action@d08cf6ff1575077dee99962540d77ce91c62387d
with:
node_image: kindest/node:${{ matrix.k8s }}
version: v0.11.1
- '.github/workflows/chart-qa.yml'

- name: Install chart-testing
uses: helm/chart-testing-action@09ed88797198755e5031f25be13da255e7e33aad
with:
version: v3.4.0

- name: Run chart install
run: ct install --config .github/ct.yaml
jobs:
test:
name: 'Helm'
uses: curium-rocks/flows/.github/workflows/helm-qa.yml@main
with:
charts_dir: 'charts'
21 changes: 6 additions & 15 deletions .github/workflows/chart-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Release Charts
name: Release Chart

on:
push:
branches:
@@ -8,17 +9,7 @@ on:
- ".github/workflows/chart-release.yml"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Run chart-releaser
uses: helm/chart-releaser-action@main
env:
CR_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
with:
charts_dir: charts
name: 'Helm'
uses: curium-rocks/flows/.github/workflows/helm-release.yml@main
with:
charts_dir: charts
2 changes: 1 addition & 1 deletion charts/k8s-dev-pod/Chart.yaml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ apiVersion: v2
name: k8s-dev-pod
description: A Helm chart for deploying a dev environment inside a K8S cluster that is compatible with Visual Studio Code remote targets
type: application
version: 0.1.9
version: 0.1.10
appVersion: "0.1.0"
maintainers:
- name: Bryopsida
4 changes: 2 additions & 2 deletions charts/k8s-dev-pod/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# k8s-dev-pod

![Version: 0.1.9](https://img.shields.io/badge/Version-0.1.9-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)
![Version: 0.1.10](https://img.shields.io/badge/Version-0.1.10-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)

A Helm chart for deploying a dev environment inside a K8S cluster that is compatible with Visual Studio Code remote targets

@@ -23,4 +23,4 @@ A Helm chart for deploying a dev environment inside a K8S cluster that is compat
| passwordLoginEnabled | bool | `true` | |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.7.0](https://github.com/norwoodj/helm-docs/releases/v1.7.0)
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)

0 comments on commit 6278cff

Please sign in to comment.