mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-01-28 02:18:36 +00:00
[talos] Unpin talos version used for extensions (#1360)
## What this PR does Some version strings were accidentally hardcoded instead of retrieving them dynamically in the profile generator for the Talos build. This follows up #1351 and fixes these issues. ### Release note ```release-note [talos] Add LLDP support and improve profile generation logic. ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - Bug Fixes - Anchored matching for firmware and extension digests to avoid false positives and incorrect selections during export, improving reliability of installs. - Chores - Switched to dynamic image tagging based on the detected Talos version, ensuring the correct extension images are exported for each release and reducing version mismatch issues for more consistent builds. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -15,12 +15,12 @@ echo "$talos_version"
|
||||
|
||||
export "TALOS_VERSION=$talos_version"
|
||||
|
||||
crane export ghcr.io/siderolabs/extensions:v1.10.6 | tar x -O image-digests > $TMPDIR/image-digests
|
||||
crane export ghcr.io/siderolabs/extensions:${TALOS_VERSION} | tar x -O image-digests > $TMPDIR/image-digests
|
||||
|
||||
for firmware in $FIRMWARES; do
|
||||
printf "fetching %s version: " "$firmware"
|
||||
firmware_var=$(echo "$firmware" | tr '[:lower:]' '[:upper:]' | tr - _)_IMAGE
|
||||
image=$(grep $firmware $TMPDIR/image-digests)
|
||||
image=$(grep -F "/$firmware:" $TMPDIR/image-digests)
|
||||
echo "$image"
|
||||
export "$firmware_var=$image"
|
||||
done
|
||||
@@ -28,7 +28,7 @@ done
|
||||
for extension in $EXTENSIONS; do
|
||||
printf "fetching %s version: " "$extension"
|
||||
extension_var=$(echo "$extension" | tr '[:lower:]' '[:upper:]' | tr - _)_IMAGE
|
||||
image=$(grep $extension $TMPDIR/image-digests)
|
||||
image=$(grep -F "/$extension:" $TMPDIR/image-digests)
|
||||
echo "$image"
|
||||
export "$extension_var=$image"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user