Skip to content

Commit

Permalink
🔀 :: action 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaisqls committed Aug 24, 2023
1 parent d7759a0 commit 1fba400
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 20 deletions.
42 changes: 33 additions & 9 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: .
Expand Down
11 changes: 0 additions & 11 deletions helm/helm-build.sh

This file was deleted.

0 comments on commit 1fba400

Please sign in to comment.