Skip to content

Commit

Permalink
feat: add scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Feb 11, 2024
1 parent 09b0e52 commit 81d8f59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 26 deletions.
27 changes: 3 additions & 24 deletions generate_readme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,10 @@
set -e

cat << EOF
This repository holds helm templates for the following Cilium releases:
This repository holds helm templates for the following oteldb releases:
EOF

for version in $(find -- * -name 'cilium-*.tgz' ! -name "*dev*" | cut -d - -f 2- | cut -d . -f -3 | sed '/-/!{s/$/_/}' | sort -Vr | sed 's/_$//'); do
echo "* [v$version](https://github.com/go-faster/cilium/releases/tag/v$version) (_[source](https://github.com/go-faster/cilium/tree/v$version/install/kubernetes/cilium)_)"
for version in $(find -- * -name 'oteldb-*.tgz' ! -name "*dev*" | cut -d - -f 2- | cut -d . -f -3 | sed '/-/!{s/$/_/}' | sort -Vr | sed 's/_$//'); do
echo "* [v$version](https://github.com/go-faster/oteldb/releases/tag/v$version) (_[source](https://github.com/go-faster/oteldb/tree/v$version/install/kubernetes/oteldb)_)"
done

cat << EOF
This repository holds helm templates for the following Tetragon releases:
EOF

for version in $(find -- * -name 'tetragon-*.tgz' ! -name "*dev*" | cut -d - -f 2- | cut -d . -f -3 | sed '/-/!{s/$/_/}' | sort -Vr | sed 's/_$//'); do
echo "* [v$version](https://github.com/go-faster/tetragon/releases/tag/v$version) (_[source](https://github.com/go-faster/tetragon/tree/v$version/install/kubernetes)_)"
done

cat << EOF
The following Cilium development releases pull the latest backports for the corresponding branch:
EOF

for version in $(find -- * -name 'cilium-*-dev.tgz' | cut -d - -f 2 | sort -Vr ); do
echo "* [v$version-dev](https://github.com/go-faster/cilium/tree/v$version) (_[source](https://github.com/go-faster/cilium/tree/v$version/install/kubernetes/cilium)_)"
done

4 changes: 2 additions & 2 deletions prepare_artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

CWD=$(dirname $(readlink -ne $BASH_SOURCE))

set -e
set -ex

OTELDB_DIR=$1
if [ $# -lt 1 ] || [ ! -d "$OTELDB_DIR" ]; then
Expand All @@ -18,7 +18,7 @@ fi

CHART_PATH="$OTELDB_DIR/helm/oteldb/Chart.yaml"
VERSION="$(awk '/version:/ { print $2; exit; } ' "$CHART_PATH")"
cd "$OTELDB_DIR/helm/oteldb"
cd "$OTELDB_DIR/helm"
helm package --destination "$CWD" oteldb
cd -
helm repo index . --merge index.yaml
Expand Down

0 comments on commit 81d8f59

Please sign in to comment.