about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/linkerd/update-stable.sh
diff options
context:
space:
mode:
authorsuperherointj <5861043+superherointj@users.noreply.github.com>2022-08-26 16:03:29 -0300
committersuperherointj <5861043+superherointj@users.noreply.github.com>2022-08-26 16:06:36 -0300
commita0d7eaf10c5f94febc782e06bfb5b8d3c44c5715 (patch)
tree0c726e145811e3727bc9f3309dc5e8d639d1f70d /pkgs/applications/networking/cluster/linkerd/update-stable.sh
parentf98065ab50c6a89bd97949557f85a63e5d82804a (diff)
linkerd: skip Release Candidate versions on update script
Diffstat (limited to 'pkgs/applications/networking/cluster/linkerd/update-stable.sh')
-rwxr-xr-xpkgs/applications/networking/cluster/linkerd/update-stable.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/networking/cluster/linkerd/update-stable.sh b/pkgs/applications/networking/cluster/linkerd/update-stable.sh
index 5ec96af796c0b..19aa4274bed35 100755
--- a/pkgs/applications/networking/cluster/linkerd/update-stable.sh
+++ b/pkgs/applications/networking/cluster/linkerd/update-stable.sh
@@ -7,7 +7,7 @@ cd $(dirname "$0")
 
 VERSION=$(curl ${GITHUB_TOKEN:+" -u \":$GITHUB_TOKEN\""} \
     --silent https://api.github.com/repos/linkerd/linkerd2/releases | \
-    jq 'map(.tag_name)' | grep stable | sed 's/["|,| ]//g' | sed 's/stable-//' | sort -V -r | head -n1)
+    jq 'map(.tag_name)' | grep -v -e '-rc' | grep stable | sed 's/["|,| ]//g' | sed 's/stable-//' | sort -V -r | head -n1)
 
 SHA256=$(nix-prefetch-url --quiet --unpack https://github.com/linkerd/linkerd2/archive/refs/tags/stable-${VERSION}.tar.gz)