CI: Fix naming of platform images 57/307957/1
authorMarek Pikuła <m.pikula@partner.samsung.com>
Thu, 14 Mar 2024 15:11:35 +0000 (16:11 +0100)
committerMarek Pikuła <m.pikula@partner.samsung.com>
Thu, 14 Mar 2024 15:11:35 +0000 (16:11 +0100)
Platform images (i.e., without boot image) don't provide information
about target. Up to this point, the image name for platform images was
lacking the target information, resulting in missing device model field
in the name (e.g., `IoT_Headless----platform--aarch64--...`). This
change sets the default `none` value for device model (resulting in
`IoT_Headless--none--platform--aarch64--...`).

Change-Id: Ie50624095a098bf34d7e1adc6364d7a000a79cd3

mk_delta/action.yml

index 4d490bb..f4664c1 100644 (file)
@@ -230,6 +230,7 @@ runs:
         source images/result/*/FW_DELTA/DELTA/update-info.ini
         set +x
         tz_build_release_name=${tz_build_release_name//\//_}
+        model_name=${model_name:-none}
 
         OLD_RELEASE_VERSION=$(ls images/old/*tar.gz | head -n 1 | sed 's/.*\([0-9]\{8\}\.[0-9]\{6\}\).*/\1/')
         NEW_RELEASE_VERSION=$(ls images/new/*tar.gz | head -n 1 | sed 's/.*\([0-9]\{8\}\.[0-9]\{6\}\).*/\1/')