-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
33 additions
and
20 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,16 +26,40 @@ jobs: | |
uses: azure/[email protected] | ||
with: | ||
version: v3.10.1 # Also update in lint-and-test.yaml | ||
- name: Helm package | ||
id: helm_package | ||
|
||
- name: Add helm repo | ||
working-directory: helm | ||
run: | | ||
package_dir=$(find helm -type d -mindepth 1 -maxdepth 1 -exec basename {} \; | tr '\n' ' ') | ||
echo $package_dir | ||
cd helm | ||
helm package $package_dir | ||
cd ../ | ||
function random_name() { | ||
echo $(LC_ALL=C tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 12 | head -n 1) | ||
} | ||
find . -mindepth 1 -maxdepth 1 -type d | | ||
while IFS= read -r package_directory; do | ||
helm dependency update $(basename "$package_directory") | ||
done | ||
while IFS= read -r chart_lock_file; do | ||
while IFS= read -r repo; do | ||
if [ -n "$repo" ]; then | ||
helm repo add $random_name() $repo || true | ||
fi | ||
done <<< $(yq eval '.dependencies[] | .repository' "$chart_lock_file") # repos | ||
done <<< "$(find . -name "Chart.lock") # chart lock files | ||
- name: Helm build | ||
working-directory: helm | ||
run: | | ||
find . -mindepth 1 -maxdepth 1 -type d | | ||
while IFS= read -r package_directory; do | ||
dir_name=$(basename "$package_directory") | ||
helm dependency build $dir_name | ||
helm package $dir_name | ||
done | ||
- name: Get Helm package | ||
id: helm_package | ||
run: | | ||
package_list=$(find . -type f -mindepth 1 -maxdepth 1 -name "*.tgz" -exec basename {} \; | tr '\n' ' ') | ||
echo $package_list | ||
echo "package_list=$package_list" >> $GITHUB_OUTPUT | ||
|
@@ -52,7 +76,7 @@ jobs: | |
- name: Commit The Chart Realease | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: "update :: new realease" | ||
commit_message: "update :: new chart realease" | ||
branch: gh-pages | ||
commit_options: '--no-verify --signoff' | ||
repository: . | ||
|
This file was deleted.
Oops, something went wrong.