Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove helm chart and fix release script #19

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 27 additions & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,39 @@ 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 "Uploading chart index..."
cr upload --owner snyk --git-repo runtime-sensor --packages-with-index --push --skip-existing

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
Loading