Skip to content

Commit

Permalink
.github: Generate update conf for bugfix-only updates
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pothos committed Dec 6, 2023
1 parent 7987dc4 commit 909de0f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 909de0f

Please sign in to comment.