mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-25 22:16:30 +00:00
Separate build step when loading container images (#2731)
Separate fetching the current release and loading the container image into separate build steps. This allows to manually later the version json file for testing.
This commit is contained in:
parent
e83f264e8c
commit
79050fb820
@ -16,14 +16,15 @@ HASSIO_CONTAINER_IMAGES_ARCH = supervisor dns audio cli multicast observer core
|
|||||||
define HASSIO_CONFIGURE_CMDS
|
define HASSIO_CONFIGURE_CMDS
|
||||||
# Deploy only landing page for "core" by setting version to "landingpage"
|
# Deploy only landing page for "core" by setting version to "landingpage"
|
||||||
curl -s $(HASSIO_VERSION_URL) | jq '.core = "landingpage"' > $(@D)/stable.json
|
curl -s $(HASSIO_VERSION_URL) | jq '.core = "landingpage"' > $(@D)/stable.json
|
||||||
|
endef
|
||||||
|
|
||||||
|
define HASSIO_BUILD_CMDS
|
||||||
$(Q)mkdir -p $(@D)/images
|
$(Q)mkdir -p $(@D)/images
|
||||||
$(Q)mkdir -p $(HASSIO_DL_DIR)
|
$(Q)mkdir -p $(HASSIO_DL_DIR)
|
||||||
$(foreach image,$(HASSIO_CONTAINER_IMAGES_ARCH),\
|
$(foreach image,$(HASSIO_CONTAINER_IMAGES_ARCH),\
|
||||||
$(BR2_EXTERNAL_HASSOS_PATH)/package/hassio/fetch-container-image.sh \
|
$(BR2_EXTERNAL_HASSOS_PATH)/package/hassio/fetch-container-image.sh \
|
||||||
$(BR2_PACKAGE_HASSIO_ARCH) $(BR2_PACKAGE_HASSIO_MACHINE) $(@D)/stable.json $(image) "$(HASSIO_DL_DIR)" "$(@D)/images"
|
$(BR2_PACKAGE_HASSIO_ARCH) $(BR2_PACKAGE_HASSIO_MACHINE) $(@D)/stable.json $(image) "$(HASSIO_DL_DIR)" "$(@D)/images"
|
||||||
)
|
)
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
HASSIO_INSTALL_IMAGES = YES
|
HASSIO_INSTALL_IMAGES = YES
|
||||||
|
Loading…
x
Reference in New Issue
Block a user