From b626341177991d1946298f1326a5aa327f8090e7 Mon Sep 17 00:00:00 2001 From: Arthur Silva Sens Date: Tue, 20 Sep 2022 15:51:58 -0300 Subject: [PATCH] Add script to download latest installer (#322) Signed-off-by: ArthurSens Signed-off-by: ArthurSens --- .gitignore | 3 ++- hack/download-installer.sh | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 hack/download-installer.sh diff --git a/.gitignore b/.gitignore index 33c55d39..f1b7b93e 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,5 @@ diff !monitoring-satellite/manifests/kube-prometheus-rules/* !monitoring-satellite/manifests/crds/* -*.tar.gz +*.tar.gz* +obs-installer diff --git a/hack/download-installer.sh b/hack/download-installer.sh new file mode 100755 index 00000000..07eb9cf9 --- /dev/null +++ b/hack/download-installer.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +curl -s https://api.github.com/repos/gitpod-io/observability/releases/latest \ +| grep "browser_download_url.*linux_amd64.tar.gz" \ +| cut -d : -f 2,3 \ +| tr -d \" \ +| xargs curl -LO + +tar -xvf obs-installer*.tar.gz