-
Notifications
You must be signed in to change notification settings - Fork 8
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
54 changed files
with
1,191 additions
and
1,202 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 |
---|---|---|
|
@@ -12,18 +12,22 @@ jobs: | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1 | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Install Helm | ||
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 #v3.5 | ||
uses: azure/[email protected] | ||
with: | ||
version: v3.8.1 | ||
- name: Prepare GPG key #this step is for using exported keys and make your github runner | ||
- name: Add repositories | ||
run: | | ||
helm dependency list charts/druid #shows the output of dependencies | ||
helm dependency list charts/druid 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done | ||
- name: Prepare GPG key # Prepares GPG fields to sign chart | ||
run: | | ||
gpg_dir=.cr-gpg | ||
mkdir "$gpg_dir" | ||
|
@@ -32,37 +36,21 @@ jobs: | |
passphrase_file="$gpg_dir/passphrase" | ||
echo "$GPG_PASSPHRASE" > "$passphrase_file" #storing passphrase data into a file | ||
echo "CR_PASSPHRASE_FILE=$passphrase_file" >> "$GITHUB_ENV" #saving passphrase into github-environment | ||
echo "CR_KEYRING=$keyring" >> "$GITHUB_ENV" #saving private key into github-environemnt | ||
echo "CR_KEYRING=$keyring" >> "$GITHUB_ENV" #saving private key into github-environment | ||
env: | ||
GPG_KEYRING_BASE64: "${{ secrets.GPG_KEYRING_BASE64 }}" #Referring secrets of github above | ||
GPG_KEYRING_BASE64: "${{ secrets.GPG_KEYRING_BASE64 }}" | ||
GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}" | ||
- name: Add repositories | ||
run: | | ||
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 | ||
- name: Run chart-releaser # Generates new version of helm chart along with some file with extension .prov | ||
uses: helm/[email protected] | ||
with: | ||
charts_dir: charts | ||
pages_branch: main | ||
packages_with_index: true | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
CR_KEY: "${{ secrets.CR_KEY }}" #Key name used while creating key | ||
CR_SIGN: true # set to true to sign images | ||
CR_KEY: "${{ secrets.CR_KEY }}" # Key name used while creating key | ||
CR_SIGN: true # Set to true to sign images | ||
CR_SKIP_EXISTING: true | ||
|
||
linter-artifacthub: | ||
runs-on: ubuntu-latest | ||
|
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
.idea/ | ||
releases/ | ||
druid-*.tgz | ||
druid-*.tgz.prov |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.