Skip to content

Commit

Permalink
Fix dependency search from directory to .tgz files (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
GWphua committed Aug 12, 2024
1 parent 904b26e commit dc61370
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
name: Release Charts
on:
push:
branches:
- main
- release-**
branches: ["main"]
jobs:
release:
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
permissions:
contents: write
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
Expand Down Expand Up @@ -39,9 +38,25 @@ jobs:
GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}"
- name: Add repositories
run: |
for dir in $(ls -d charts/*/); do
helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done
for tgz_file in charts/*.tgz; do
dir=$(mktemp -d)
tar -xzf $tgz_file -C $dir
helm dependency list $dir/*/ 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done
rm -rf $dir
done
- name: Package and Sign Helm Charts
run: |
helm dependency update .
helm package . --destination releases/ --sign --key $CR_KEY --keyring $CR_KEYRING
helm repo index .
- name: Update Helm Repo Index
run: |
helm repo index . --merge index.yaml
git add index.yaml
git commit -m "Helm Release [skip ci]"
git push origin main
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Run chart-releaser #this is used to generate new version of helm chart along with some file with extension .prov
uses: helm/chart-releaser-action@a917fd15b20e8b64b94d9158ad54cd6345335584 #v1.6.0
env:
Expand Down
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

apiVersion: v2
name: druid
version: 30.0.5
version: 30.0.6
appVersion: 30.0.0
description: Apache Druid is a high performance real-time analytics database.
keywords:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
$ helm repo add druid-helm https://asdf2014.github.io/druid-helm/

# Install chart
$ helm install my-druid druid-helm/druid --version 30.0.5
$ helm install my-druid druid-helm/druid --version 30.0.6
```


Expand Down

0 comments on commit dc61370

Please sign in to comment.