Skip to content

Commit

Permalink
release operator v1.0.0 chart
Browse files Browse the repository at this point in the history
Signed-off-by: Burak Sekili <[email protected]>

release operator v1.0.0 chart

Signed-off-by: Burak Sekili <[email protected]>
  • Loading branch information
buraksekili committed Oct 10, 2024
1 parent d1a599f commit 44b3f71
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: Release Helm charts

on:
pull_request:
branches:
- main
push:
branches:
- main
paths:
- '**/Chart.yaml'

jobs:
get-list-of-charts:
get-list-of-charts:
runs-on: ubuntu-latest
name: 'Get list of charts to be released'
outputs:
Expand All @@ -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
Expand All @@ -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) }}
Expand Down Expand Up @@ -78,9 +75,9 @@ jobs:
- name: Push Helm Chart
uses: cloudsmith-io/[email protected]
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: "push"
format: "helm"
owner: "tyk"
repo: "helm"
file: "${{ steps.file-name.outputs.fileName }}"
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: "push"
format: "helm"
owner: "tyk"
repo: "helm"
file: "${{ steps.file-name.outputs.fileName }}"
2 changes: 1 addition & 1 deletion components/tyk-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 44b3f71

Please sign in to comment.