-
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
729 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 |
---|---|---|
|
@@ -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 }}" |
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.