balena-io-modules / balena-preload

Script for preloading containers onto balena device images
https://www.balena.io/
Apache License 2.0
35 stars 8 forks source link

Extend supervisor repository regex for balenaOS v2.93.0 #271

Closed klutchell closed 2 years ago

klutchell commented 2 years ago

As of balenaOS v2.93.0 the supervisor image is not tagged with a dockerhub repository name, so the existing regex will have to be expanded. https://github.com/balena-io-modules/balena-preload/blob/91ea31186581af7c13a1105ce98ff7f296632f7b/src/preload.py#L54

root@1345d5a:~# balena images --all --format '{{.Repository}} {{.Tag}}'
balena-healthcheck-image latest
balena_supervisor v12.11.38
registry2.balena-cloud.com/v2/bd42da3d0a357f9674f82ca7e45625c8 latest
registry2.balena-cloud.com/v2/bea9d6295d649deecd073e77dfc75838 latest