-
-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update publish-charts.yaml workflow
Signed-off-by: Shubham Gupta <[email protected]>
- Loading branch information
1 parent
b884162
commit 2c9be9f
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
name: Release Charts | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'charts/**' | ||
- '.github/workflows/publish-charts.yaml' | ||
branches: | ||
- master | ||
push: | ||
paths: | ||
- 'charts/**' | ||
|
@@ -104,15 +110,15 @@ jobs: | |
run: | | ||
helm repo add jetstack https://charts.jetstack.io | ||
helm repo update | ||
chart_dirs=("redis-operator" "redis" "redis-cluster" "redis-replication" "redis-sentinel") | ||
for dir in "${chart_dirs[@]}" | ||
do | ||
if [[ -f ./charts/$dir/Chart.yaml ]]; then | ||
helm dependency update ./charts/$dir/ | ||
fi | ||
helm package charts/$dir -d .cr-release-packages | ||
done | ||
done | ||
- name: Install chart-releaser | ||
uses: helm/[email protected] | ||
|