-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Shubham Gupta <[email protected]>
- Loading branch information
1 parent
771c90f
commit 0a703bc
Showing
1 changed file
with
12 additions
and
8 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 |
---|---|---|
|
@@ -26,7 +26,15 @@ jobs: | |
uses: azure/setup-helm@v3 | ||
with: | ||
version: v3.5.4 | ||
|
||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
check-latest: true | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Add Helm Repository | ||
run: | | ||
helm repo add jetstack https://charts.jetstack.io | ||
|
@@ -37,22 +45,18 @@ jobs: | |
- name: Update Chart Dependencies for redis-operator | ||
run: helm dependency update charts/redis-operator | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: List Changed Charts | ||
id: list-changed | ||
run: | | ||
changed_charts=$(ct list-changed) | ||
changed_charts=$(ct list-changed --debug) | ||
echo "Changed charts: $changed_charts" | ||
echo "::set-output name=changed_charts::$changed_charts" | ||
- name: Package and Release Charts | ||
run: | | ||
for CHART_DIR in $(find charts -maxdepth 1 -type d | tail --lines +2); do | ||
CHART=$(basename $CHART_DIR) | ||
for CHART in ${{ steps.list-changed.outputs.changed_charts }}; do | ||
echo "Packaging $CHART..." | ||
helm package $CHART_DIR | ||
helm package charts/$CHART | ||
done | ||
- name: Run chart-releaser | ||
|