From fcbb9fb3c08397e325fd58c6d1a8e03fbf22240c Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Wed, 8 Apr 2020 17:42:08 +0200 Subject: [PATCH] Github Config --- .github/FUNDING.yml | 1 + .github/workflows/helm-charts-release.yaml | 33 ++++++++++++++++++++++ .github/workflows/helm-charts-test.yaml | 31 ++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/helm-charts-release.yaml create mode 100644 .github/workflows/helm-charts-test.yaml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..9c4f1ea --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: WyriHaximus \ No newline at end of file diff --git a/.github/workflows/helm-charts-release.yaml b/.github/workflows/helm-charts-release.yaml new file mode 100644 index 0000000..48b1056 --- /dev/null +++ b/.github/workflows/helm-charts-release.yaml @@ -0,0 +1,33 @@ +name: "helm-charts/release" + +on: + push: + branches: + - master + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Fetch history + run: git fetch --prune --unshallow + + - name: Configure Git + run: | + git config user.name "$GITHUB_ACTOR" + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + + # See https://github.com/helm/chart-releaser-action/issues/6 + - name: Install Helm + run: | + curl -fsSLo get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 + chmod 700 get_helm.sh + ./get_helm.sh + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.0.0-rc.1 + env: + CR_TOKEN: "${{ secrets.CR_TOKEN }}" diff --git a/.github/workflows/helm-charts-test.yaml b/.github/workflows/helm-charts-test.yaml new file mode 100644 index 0000000..83d84d6 --- /dev/null +++ b/.github/workflows/helm-charts-test.yaml @@ -0,0 +1,31 @@ +name: "helm-charts/test" + +on: pull_request + +jobs: + lint-test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Fetch history + run: git fetch --prune --unshallow + + - name: Run chart-testing (lint) + id: lint + uses: helm/chart-testing-action@v1.0.0-rc.1 + with: + command: lint + + - name: Create kind cluster + uses: helm/kind-action@v1.0.0-alpha.3 + with: + installLocalPathProvisioner: true + # Only build a kind cluster if there are chart changes to test. + if: steps.lint.outputs.changed == 'true' + + - name: Run chart-testing (install) + uses: helm/chart-testing-action@v1.0.0-rc.1 + with: + command: install