48 lines
1.3 KiB
Bash
Executable File
48 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
check_distro()
|
|
{
|
|
|
|
families=$1
|
|
project=$2
|
|
arch_add=""
|
|
[[ "${project}" == "ubuntu"* ]] && arch_add="| select(.architecture == \"X86_64\")"
|
|
|
|
for family in ${families}
|
|
do
|
|
gcloud compute images list --project ${project} --filter="family:${family}" --format=json | \
|
|
jq -rc ".[] ${arch_add} | .name"
|
|
done
|
|
}
|
|
|
|
# Check Fedora stable images
|
|
families="fedora-cloud-41 fedora-cloud-42"
|
|
project="fedora-cloud"
|
|
|
|
check_distro "$families" "$project"
|
|
|
|
# Check Ubuntu stable images
|
|
families="ubuntu-2204-lts ubuntu-2404-lts-amd64"
|
|
project="ubuntu-os-cloud"
|
|
|
|
check_distro "$families" "$project"
|
|
|
|
# Check Debian stable images
|
|
families="debian-11 debian-12 debian-13"
|
|
project="debian-cloud"
|
|
|
|
check_distro "$families" "$project"
|
|
|
|
latest_sup_rev="2510"
|
|
|
|
gcloud compute images list --project ubuntu-os-cloud --filter="family:ubuntu-${latest_sup_rev}-amd64"
|
|
gcloud compute images list --project ubuntu-os-cloud --filter="family:ubuntu-minimal-${latest_sup_rev}-amd64"
|
|
|
|
# For testing for the next daily release depending on LTS or non-LTS
|
|
dev_rel=2604-lts
|
|
lts_rel=2404
|
|
|
|
gcloud compute images list --project ubuntu-os-cloud-devel --filter="family:ubuntu-${dev_rel}-amd64"
|
|
gcloud compute images list --project ubuntu-os-cloud-devel --filter="family:ubuntu-${lts_rel}-lts-amd64"
|
|
|