scripts: get_nodes_ids.sh

Add the script used to obtain graphql node IDs from Github so it's
easier to add a new component.
This commit is contained in:
Max Gautier
2025-01-07 14:25:48 +01:00
parent 5a353cb04f
commit c938dfa634

36
scripts/get_node_ids.sh Executable file
View File

@@ -0,0 +1,36 @@
#!/bin/sh
gh api graphql -H "X-Github-Next-Global-ID: 1" -f query='{
calicoctl_binary: repository(owner: "projectcalico", name: "calico") {
id
}
ciliumcli_binary: repository(owner: "cilium", name: "cilium-cli") {
id
}
crictl: repository(owner: "kubernetes-sigs", name: "cri-tools") {
id
}
crio_archive: repository(owner: "cri-o", name: "cri-o") {
id
}
etcd_binary: repository(owner: "etcd-io", name: "etcd") {
id
}
kubectl: repository(owner: "kubernetes", name: "kubernetes") {
id
}
nerdctl_archive: repository(owner: "containerd", name: "nerdctl") {
id
}
runc: repository(owner: "opencontainers", name: "runc") {
id
}
skopeo_binary: repository(owner: "lework", name: "skopeo-binary") {
id
}
yq: repository(owner: "mikefarah", name: "yq") {
id
}
kubernetes: repository(owner: "kubernetes", name: "kubernetes") {
id
}
}'