From 67de6a6c9e6679195dda146d27b29a8c4e0d475b Mon Sep 17 00:00:00 2001 From: Christian Kotzbauer Date: Sun, 15 Nov 2020 21:32:35 +0100 Subject: [PATCH] update pipelines Signed-off-by: Christian Kotzbauer --- .github/workflows/lint-test.yaml | 37 ++++++++++++++++++++++---------- .github/workflows/release.yaml | 19 ++++++++-------- 2 files changed, 36 insertions(+), 20 deletions(-) diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index b82973e..99d2271 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -7,21 +7,36 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Set up Helm + uses: azure/setup-helm@v1 + with: + version: v3.4.0 + + - uses: actions/setup-python@v2 + with: + python-version: 3.7 + + - name: Set up chart-testing + uses: helm/chart-testing-action@v2.0.1 + + - name: Run chart-testing (list-changed) + id: list-changed + run: | + changed=$(ct list-changed) + if [[ -n "$changed" ]]; then + echo "::set-output name=changed::true" + fi - name: Run chart-testing (lint) - id: lint - uses: helm/chart-testing-action@v2.0.0 - with: - command: lint + run: ct lint - name: Create kind cluster uses: helm/kind-action@v1.0.0 - with: - install_local_path_provisioner: true - if: steps.lint.outputs.changed == 'true' + if: steps.list-changed.outputs.changed == 'true' - name: Run chart-testing (install) - uses: helm/chart-testing-action@v2.0.0 - with: - command: install + run: ct install \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index db1be48..1724364 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -10,23 +10,24 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 + with: + fetch-depth: 0 - 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 -sSLo get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get - chmod 700 get_helm.sh - ./get_helm.sh - helm init --client-only + uses: azure/setup-helm@v1 + with: + version: v3.4.0 + - name: Add dependency chart repos run: | - helm repo add stable https://kubernetes-charts.storage.googleapis.com/ - helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/ + helm repo add stable https://charts.helm.sh/stable + - name: Run chart-releaser uses: helm/chart-releaser-action@v1.1.0 env: