Last active
December 20, 2021 13:42
-
-
Save mathieu-benoit/49e137585794d229991612da021ffb3f to your computer and use it in GitHub Desktop.
check_releases.sh
This file contains hidden or 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
#!/bin/bash | |
sudo apt update -y | |
sudo apt upgrade -y | |
sudo apt autoremove -y | |
repo='kubernetes/kubernetes' | |
echo $repo '(v1.22.5, v1.21.8, v1.20.14, v1.19.16)' | |
curl -s https://api.github.com/repos/$repo/releases | jq -r '[.[] | select(.prerelease == false and (.tag_name | startswith("v1.22")))] | .[0].tag_name' | |
curl -s https://api.github.com/repos/$repo/releases | jq -r '[.[] | select(.prerelease == false and (.tag_name | startswith("v1.21")))] | .[0].tag_name' | |
curl -s https://api.github.com/repos/$repo/releases | jq -r '[.[] | select(.prerelease == false and (.tag_name | startswith("v1.20")))] | .[0].tag_name' | |
curl -s https://api.github.com/repos/$repo/releases | jq -r '[.[] | select(.prerelease == false and (.tag_name | startswith("v1.19")))] | .[0].tag_name' | |
repo='hashicorp/terraform' | |
echo $repo '(v1.1.2)' | |
curl -s https://api.github.com/repos/$repo/releases | jq -r '[.[] | select(.prerelease == false)] | .[0].tag_name' | |
repo='hashicorp/terraform-provider-google' | |
echo $repo '(v4.4.0)' | |
curl -s https://api.github.com/repos/$repo/tags | jq -r '.[0].name' | |
repo='dotnet/aspnetcore' | |
echo $repo '(v6.0.1)' | |
curl -s https://api.github.com/repos/$repo/releases | jq -r '[.[] | select(.prerelease == false and (.tag_name | startswith("v6")))] | .[0].tag_name' | |
repo='docker/cli' | |
echo $repo '(v20.10.12)' | |
curl -s https://api.github.com/repos/$repo/tags | jq -r '.[0].name' | |
repo='gohugoio/hugo' | |
echo $repo '(v0.91.0)' | |
curl -s https://api.github.com/repos/$repo/releases | jq -r '.[0].tag_name' | |
repo='nginx/nginx' | |
echo $repo '(release-1.21.4)' | |
curl -s https://api.github.com/repos/$repo/tags | jq -r '.[0].name' | |
repo='containerd/containerd' | |
echo $repo '(v1.5.5)' | |
curl -s https://api.github.com/repos/$repo/tags | jq -r '.[0].name' | |
repo='GoogleCloudPlatform/cloudsql-proxy' | |
echo $repo '(v1.27.1)' | |
curl -s https://api.github.com/repos/$repo/tags | jq -r '.[0].name' | |
repo='grpc/grpc' | |
echo $repo '(v1.43.0)' | |
curl -s https://api.github.com/repos/$repo/releases | jq -r '.[0].tag_name' | |
repo='grpc-ecosystem/grpc-health-probe' | |
echo $repo '(v0.4.6)' | |
curl -s https://api.github.com/repos/$repo/tags | jq -r '.[0].name' | |
repo='GoogleCloudPlatform/k8s-config-connector' | |
echo $repo '(1.69.0)' | |
curl -s https://api.github.com/repos/$repo/releases | jq -r '.[0].tag_name' | |
repo='GoogleCloudPlatform/secrets-store-csi-driver-provider-gcp' | |
echo $repo '(v1.0.0)' | |
curl -s https://api.github.com/repos/$repo/releases | jq -r '.[0].tag_name' | |
repo='google/knative-gcp' | |
echo $repo '(v0.23.0)' | |
curl -s https://api.github.com/repos/$repo/releases | jq -r '.[0].tag_name' | |
repo='GoogleContainerTools/kpt' | |
echo $repo '(v1.0.0-beta.9)' | |
curl -s https://api.github.com/repos/$repo/releases | jq -r '.[0].tag_name' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment