Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaisqls committed Aug 25, 2023
2 parents f1e26b8 + e1893c2 commit 77952ae
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,9 @@ jobs:

- name: Add helm repo
run: |
changed_helm_packages=$(git diff --name-only HEAD~1 | grep '^helm/' | cut -d/ -f1-2)
while IFS=$'\n' read -r package_directory; do
helm dependency update $package_directory
chart_lock_file=$(find $package_directory -mindepth 1 -maxdepth 1 -name "Chart.lock")
yq eval '.dependencies[] | .repository' "$chart_lock_file" |
while IFS= read -r repo; do
if [ -n "$repo" ]; then
random_name=$(LC_ALL=C tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 12 | head -n 1)
helm repo add $random_name $repo
fi
done
done <<< "$changed_helm_packages"
helm repo add prometheus https://prometheus-community.github.io/helm-charts
helm repo add grafana https://grafana.github.io/helm-charts
helm repo add bitnami https://charts.bitnami.com/bitnami
- name: Helm build
run: |
Expand All @@ -67,4 +56,4 @@ jobs:
repository: .
commit_user_name: XQUARE GitOps Bot
commit_user_email: [email protected]
commit_author: XQUARE GitOps Bot <[email protected]>
commit_author: XQUARE GitOps Bot <[email protected]>

0 comments on commit 77952ae

Please sign in to comment.