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 26, 2024
1 parent 17d6478 commit 9a778e1
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 729 deletions.
52 changes: 24 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,33 @@ jobs:
- 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
- name: Install Chart Releaser
run: |
tag=${{ steps.get-tag.outputs.tag }}
echo "version=${tag##*-}" >> $GITHUB_OUTPUT
if [[ ! -d "$RUNNER_TOOL_CACHE" ]]; then
echo "Cache directory '$RUNNER_TOOL_CACHE' does not exist" >&2
exit 1
fi
- 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
arch=$(uname -m)
cr_version="v1.6.1"
install_dir="$RUNNER_TOOL_CACHE/cr/$cr_version/$arch"
- name: Configure Git
mkdir -p "$install_dir"
echo "Installing chart-releaser on $install_dir..."
curl -sSLo cr.tar.gz "https://github.com/helm/chart-releaser/releases/download/$version/chart-releaser_${version#v}_linux_amd64.tar.gz"
tar -xf cr.tar.gz -C "$install_dir"
rm -f cr.tar.gz
echo 'Adding cr directory to PATH...'
export PATH="$install_dir:$PATH"
- name: Run chart-releaser upload
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
echo 'Releasing charts...'
cr upload
env:
CR_SKIP_EXISTING: true
CR_OWNER: snyk
CR_GIT_REPO: runtime-sensor
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 9a778e1

Please sign in to comment.