Skip to content

Commit

Permalink
Separate build step when loading container images (home-assistant#2731)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
agners authored Sep 4, 2023
1 parent e83f264 commit 79050fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buildroot-external/package/hassio/hassio.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ HASSIO_CONTAINER_IMAGES_ARCH = supervisor dns audio cli multicast observer core
define HASSIO_CONFIGURE_CMDS
# Deploy only landing page for "core" by setting version to "landingpage"
curl -s $(HASSIO_VERSION_URL) | jq '.core = "landingpage"' > $(@D)/stable.json
endef

define HASSIO_BUILD_CMDS
$(Q)mkdir -p $(@D)/images
$(Q)mkdir -p $(HASSIO_DL_DIR)
$(foreach image,$(HASSIO_CONTAINER_IMAGES_ARCH),\
$(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"
)

endef

HASSIO_INSTALL_IMAGES = YES
Expand Down

0 comments on commit 79050fb

Please sign in to comment.