From 25d6003b52e2dfa7790eac340a6b4ea091decf40 Mon Sep 17 00:00:00 2001 From: David Son Date: Mon, 4 Nov 2024 16:45:46 +0000 Subject: [PATCH] Add EKS docs to automated version updating Signed-off-by: David Son --- .github/workflows/update-getting-started-guide.yml | 2 ++ docs/eks.md | 6 +++--- scripts/update-getting-started-guide-version.sh | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-getting-started-guide.yml b/.github/workflows/update-getting-started-guide.yml index f5e915327..413dd3855 100644 --- a/.github/workflows/update-getting-started-guide.yml +++ b/.github/workflows/update-getting-started-guide.yml @@ -27,6 +27,7 @@ jobs: - uses: actions/checkout@v4 with: sparse-checkout: | + docs/eks.md docs/getting-started.md scripts/update-getting-started-guide-version.sh @@ -49,6 +50,7 @@ jobs: with: ref: main sparse-checkout: | + docs/eks.md docs/getting-started.md scripts/update-getting-started-guide-version.sh diff --git a/docs/eks.md b/docs/eks.md index 241340484..ac5018da3 100644 --- a/docs/eks.md +++ b/docs/eks.md @@ -131,9 +131,9 @@ This will create an script that will be run on instance boot to install and conf cat <<'EOF_SCRIPT' >install_soci.sh #!/bin/bash # Set environment variables -ARCH=$(uname -m | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) -VERSION=0.7.0 -ARCHIVE=soci-snapshotter-$VERSION-linux-$ARCH.tar.gz +arch=$(uname -m | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) +version="0.7.0" +ARCHIVE=soci-snapshotter-${version}-linux-${arch}.tar.gz pushd /tmp # Download, verify, and install the soci-snapshotter diff --git a/scripts/update-getting-started-guide-version.sh b/scripts/update-getting-started-guide-version.sh index 2da8f1208..a96620d2a 100755 --- a/scripts/update-getting-started-guide-version.sh +++ b/scripts/update-getting-started-guide-version.sh @@ -67,7 +67,7 @@ assert_diff() { } } -sed -i -E "s/version=\"([0-9]+\.){2}[0-9]+\"/version=\"${VERSION}\"/" docs/getting-started.md +sed -i -E "s/version=\"([0-9]+\.){2}[0-9]+\"/version=\"${VERSION}\"/" docs/getting-started.md docs/eks.md if [ $VERBOSE = true ]; then git --no-pager diff