From 44b3f71e4189e6510b9ae3b74ac649d83b66bf06 Mon Sep 17 00:00:00 2001 From: Burak Sekili Date: Thu, 10 Oct 2024 19:33:43 +0300 Subject: [PATCH] release operator v1.0.0 chart Signed-off-by: Burak Sekili release operator v1.0.0 chart Signed-off-by: Burak Sekili --- .github/workflows/release.yaml | 27 ++++++++++++--------------- components/tyk-operator/Chart.yaml | 2 +- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a14b0faf..7c1b4f0d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,6 +1,9 @@ name: Release Helm charts on: + pull_request: + branches: + - main push: branches: - main @@ -8,7 +11,7 @@ on: - '**/Chart.yaml' jobs: - get-list-of-charts: + get-list-of-charts: runs-on: ubuntu-latest name: 'Get list of charts to be released' outputs: @@ -25,12 +28,6 @@ jobs: charts=() for file in $files_changed; do - count=$(git show "$file" | grep -c "+version" || true) - if [ $count -eq 0 ]; then - echo "No version change in $file" - continue - fi - charts+=("$(echo "$file" | xargs dirname)") done @@ -41,11 +38,11 @@ jobs: echo "charts=$(jq 'split(" ")' -Rc <(echo ${charts[@]}))" >> "$GITHUB_OUTPUT" fi - release-charts: + release-charts: runs-on: ubuntu-latest needs: get-list-of-charts if: needs.get-list-of-charts.outputs.charts != 'none' - + strategy: matrix: chart: ${{ fromJson(needs.get-list-of-charts.outputs.charts) }} @@ -78,9 +75,9 @@ jobs: - name: Push Helm Chart uses: cloudsmith-io/action@v0.5.2 with: - api-key: ${{ secrets.CLOUDSMITH_API_KEY }} - command: "push" - format: "helm" - owner: "tyk" - repo: "helm" - file: "${{ steps.file-name.outputs.fileName }}" \ No newline at end of file + api-key: ${{ secrets.CLOUDSMITH_API_KEY }} + command: "push" + format: "helm" + owner: "tyk" + repo: "helm" + file: "${{ steps.file-name.outputs.fileName }}" \ No newline at end of file diff --git a/components/tyk-operator/Chart.yaml b/components/tyk-operator/Chart.yaml index 85439636..46595ea0 100644 --- a/components/tyk-operator/Chart.yaml +++ b/components/tyk-operator/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 name: tyk-operator description: A Helm chart to install the tyk-operator +version: 1.0.0 type: application -version: 1.0.0 # version of the chart