From df5fbcb77d12ca378b1ae155f73e24cff8425a27 Mon Sep 17 00:00:00 2001 From: Jonathan Gardner Date: Mon, 16 Nov 2020 16:23:04 -0800 Subject: [PATCH 1/6] Add GitHub Action to Release Chart --- .github/workflows/release.yaml | 55 ++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 000000000..9961f5f9c --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,55 @@ +name: Release Charts + +on: + push: + branches: + - master + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + 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" + + - name: Install 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) + run: ct lint + + - name: Create kind cluster + uses: helm/kind-action@v1.0.0 + if: steps.list-changed.outputs.changed == 'true' + + - name: Run chart-testing (install) + run: ct install + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.1.0 + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file From 147b843b5ae4745c7f03392d11f861b8fc59e364 Mon Sep 17 00:00:00 2001 From: Jonathan Gardner Date: Wed, 2 Dec 2020 09:45:50 -0800 Subject: [PATCH 2/6] Update release name --- .github/workflows/release.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9961f5f9c..aa2351f74 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -52,4 +52,5 @@ jobs: - name: Run chart-releaser uses: helm/chart-releaser-action@v1.1.0 env: - CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + CR_RELEASE_NAME_TEMPLATE: spark-operator-chart-{{ -.Version }}" \ No newline at end of file From 983e72f81a5a25f1baaaf237844821b71063a800 Mon Sep 17 00:00:00 2001 From: Jonathan Gardner Date: Wed, 2 Dec 2020 09:49:01 -0800 Subject: [PATCH 3/6] Add missing " --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index aa2351f74..694be4116 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -53,4 +53,4 @@ jobs: uses: helm/chart-releaser-action@v1.1.0 env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - CR_RELEASE_NAME_TEMPLATE: spark-operator-chart-{{ -.Version }}" \ No newline at end of file + CR_RELEASE_NAME_TEMPLATE: "spark-operator-chart-{{ -.Version }}" \ No newline at end of file From 5a1cd9f08f00c75358e307e0e91aa880bdca1f1b Mon Sep 17 00:00:00 2001 From: Jonathan Gardner Date: Wed, 2 Dec 2020 13:59:51 -0800 Subject: [PATCH 4/6] Remove erant typo --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 694be4116..273b9f906 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -53,4 +53,4 @@ jobs: uses: helm/chart-releaser-action@v1.1.0 env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - CR_RELEASE_NAME_TEMPLATE: "spark-operator-chart-{{ -.Version }}" \ No newline at end of file + CR_RELEASE_NAME_TEMPLATE: "spark-operator-chart-{{ .Version }}" \ No newline at end of file From aee0ce82e6a466a21fde127d6434e2891edbb6d6 Mon Sep 17 00:00:00 2001 From: Jonathan Gardner Date: Wed, 2 Dec 2020 15:03:48 -0800 Subject: [PATCH 5/6] version chart --- charts/spark-operator-chart/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/spark-operator-chart/Chart.yaml b/charts/spark-operator-chart/Chart.yaml index 28d1fd075..083a1359f 100644 --- a/charts/spark-operator-chart/Chart.yaml +++ b/charts/spark-operator-chart/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: spark-operator description: A Helm chart for Spark on Kubernetes operator -version: 1.0.1 +version: 1.0.2 appVersion: v1beta2-1.2.0-3.0.0 keywords: - spark From 2e404cb574a2f65462cab18673b537d983c7dc83 Mon Sep 17 00:00:00 2001 From: "Jonathan Gardner (MSFT)" Date: Wed, 2 Dec 2020 15:09:50 -0800 Subject: [PATCH 6/6] Revert "Version chart" --- charts/spark-operator-chart/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/spark-operator-chart/Chart.yaml b/charts/spark-operator-chart/Chart.yaml index 083a1359f..28d1fd075 100644 --- a/charts/spark-operator-chart/Chart.yaml +++ b/charts/spark-operator-chart/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: spark-operator description: A Helm chart for Spark on Kubernetes operator -version: 1.0.2 +version: 1.0.1 appVersion: v1beta2-1.2.0-3.0.0 keywords: - spark