Skip to content

Commit

Permalink
fix: remove helm chart and fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
prsnca committed Nov 27, 2024
1 parent 17d6478 commit 97aa942
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 727 deletions.
50 changes: 24 additions & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,36 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Get Latest Tag
id: get-tag
uses: WyriHaximus/[email protected]
with:
fallback: v1.22.1

- name: Get version
id: get-version
run: |
tag=${{ steps.get-tag.outputs.tag }}
echo "version=${tag##*-}" >> $GITHUB_OUTPUT
- name: Set Helm chart version from tag
uses: mikefarah/yq@master
with:
cmd: |
yq e -i '.version = "${{ steps.get-version.outputs.version }}"' ./helm/runtime-sensor/Chart.yaml
yq e -i '.sensor.image.tag = "${{ steps.get-version.outputs.version }}"' ./helm/runtime-sensor/values.yaml
ref: gh-pages

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v3
- name: Run chart-releaser
uses: helm/[email protected]
with:
skip_existing: true
charts_dir: helm
- name: Install Chart Releaser and run upload
run: |
if [[ ! -d "$RUNNER_TOOL_CACHE" ]]; then
echo "Cache directory '$RUNNER_TOOL_CACHE' does not exist" >&2
exit 1
fi
arch=$(uname -m)
cr_version="v1.6.1"
install_dir="$RUNNER_TOOL_CACHE/cr/$cr_version/$arch"
mkdir -p "$install_dir"
echo "Installing chart-releaser on $install_dir..."
curl -sSLo cr.tar.gz "https://github.com/helm/chart-releaser/releases/download/$cr_version/chart-releaser_${cr_version#v}_linux_amd64.tar.gz"
tar -xzf cr.tar.gz -C "$install_dir"
rm -f cr.tar.gz
echo 'Adding cr directory to PATH...'
export PATH="$install_dir:$PATH"
echo 'Updating charts index...'
cr index --owner snyk --git-repo runtime-sensor --push --packages-with-index --index-path .
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
25 changes: 0 additions & 25 deletions helm/runtime-sensor/.helmignore

This file was deleted.

8 changes: 0 additions & 8 deletions helm/runtime-sensor/Chart.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions helm/runtime-sensor/README.md

This file was deleted.

2 changes: 0 additions & 2 deletions helm/runtime-sensor/templates/NOTES.txt

This file was deleted.

87 changes: 0 additions & 87 deletions helm/runtime-sensor/templates/_helpers.tpl

This file was deleted.

29 changes: 0 additions & 29 deletions helm/runtime-sensor/templates/clusterrole.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions helm/runtime-sensor/templates/clusterrolebinding.yaml

This file was deleted.

106 changes: 0 additions & 106 deletions helm/runtime-sensor/templates/daemonset.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions helm/runtime-sensor/templates/secretproviderclass.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions helm/runtime-sensor/templates/serviceaccount.yaml

This file was deleted.

Loading

0 comments on commit 97aa942

Please sign in to comment.