From 909de0f8d1d775ffdefcf75fce783e27c191757f Mon Sep 17 00:00:00 2001 From: Kai Lueke <kailuke@microsoft.com> Date: Wed, 6 Dec 2023 18:12:51 +0100 Subject: [PATCH] .github: Generate update conf for bugfix-only updates The Kubernetes major version updates might be distruptive but bugfix releases can be automated without fear. Provide sysupdate configs to follow only bugfix relases. At end-of-life the instance would have to switch to a new update config. --- .github/workflows/release.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 46ed5fe..11b6d73 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -29,14 +29,22 @@ jobs: "docker_compose-2.22.0" "wasmtime-13.0.0" ) + streams=() - for image in ${images[@]}; do + for image in "${images[@]}"; do component="${image%-*}" version="${image#*-}" for arch in x86-64 arm64; do ARCH="${arch}" "./create_${component}_sysext.sh" "${version}" "${component}" mv "${component}.raw" "${image}-${arch}.raw" done + streams+=("${component}") + if [ "${component}" = "kubernetes" ]; then + streams+=("kubernetes-${version%.*}") + # Should give, e.g., v1.28 for v1.28.2 (use ${version#*.*.} to get 2) + fi + done + for component in "${streams[@]}"; do cat << EOF > "${component}.conf" [Transfer] Verify=false