-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove helm chart and fix release script
- Loading branch information
Showing
13 changed files
with
24 additions
and
727 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 |
---|---|---|
|
@@ -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 }}" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.