Fix assets building (#121)

This commit is contained in:
Andrei Kvapil
2024-05-08 20:44:32 +02:00
committed by GitHub
parent 53f2365e79
commit 9c5318641d
3 changed files with 9 additions and 5 deletions

View File

@@ -20,4 +20,4 @@ repos:
make -C packages/extra repo
assets:
make -C packages/core/talos/ assets
make -C packages/core/installer/ assets

View File

@@ -35,16 +35,20 @@ for profile in $PROFILES; do
if [ "$profile" = "nocloud" ]; then
image_options="{ diskSize: 1306525696, diskFormat: raw }"
out_format=".xz"
platform="nocloud"
kind="image"
else
image_options="{}"
out_format="raw"
platform="metal"
kind="$profile"
fi
cat > images/talos/profiles/$profile.yaml <<EOT
# this file generated by hack/gen-profiles.sh
# do not edit it
arch: amd64
platform: metal
platform: ${platform}
secureboot: false
version: ${TALOS_VERSION}
input:
@@ -65,7 +69,7 @@ input:
- imageRef: ghcr.io/siderolabs/drbd:${DRBD_VERSION}
- imageRef: ghcr.io/siderolabs/zfs:${ZFS_VERSION}
output:
kind: ${profile}
kind: ${kind}
imageOptions: ${image_options}
outFormat: ${out_format}
EOT

View File

@@ -1,7 +1,7 @@
# this file generated by hack/gen-profiles.sh
# do not edit it
arch: amd64
platform: metal
platform: nocloud
secureboot: false
version: v1.7.1
input:
@@ -22,6 +22,6 @@ input:
- imageRef: ghcr.io/siderolabs/drbd:9.2.8-v1.7.1
- imageRef: ghcr.io/siderolabs/zfs:2.2.3-v1.7.1
output:
kind: nocloud
kind: image
imageOptions: { diskSize: 1306525696, diskFormat: raw }
outFormat: .xz