Skip to content

Missing docs for migration to new builder action #301

Description

@f18m

Hi,

I'm a maintainer of a few HA addons/apps.
I've been a long time user of the home-assistant/builder action and now I'm trying to migrate to the new actions.
However I feel like there is no clear migration procedure. I appreciate the README in this project but there are a number of questions related to the migration which are not addressed like:

  1. the example pipeline at https://github.com/home-assistant/builder?tab=readme-ov-file#example-workflow only works when you have
on:
  release:
    types: [published]

as trigger. What if I want to publish docker images for un-released content (e.g. I publish a "Beta" version of each addon where I deploy new developments for manual testing across a few HA instances before releasing them in the "main" channel). I think creating a release for "beta" version would be confusing so I'm trying to adapt this pipeline for triggers like on.push . Having an example as part of migration guide would be useful :)

  1. with previous home-assistant/builder action, the Dockerfile of the addon/app had to be structured like:
FROM $BUILD_FROM

This does not work anymore apparently; using new action I get:

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 2.39kB done
#1 WARN: InvalidDefaultArgInFrom: Default value for ARG $BUILD_FROM results in empty or invalid base image name (line 41)
#1 DONE 0.1s

 1 warning found (use docker --debug to expand):
 - InvalidDefaultArgInFrom: Default value for ARG $BUILD_FROM results in empty or invalid base image name (line 41)
Dockerfile:41
--------------------
  39 |     # --- Actual ADDON layer
  40 |     
  41 | >>> FROM $BUILD_FROM
  42 |     
  43 |     # Add env
--------------------
ERROR: failed to build: failed to solve: base name ($BUILD_FROM) should not be blank

Also the docs at https://developers.home-assistant.io/docs/apps/tutorial#the-dockerfile-file are not updated and still reference the $BUILD_FROM bit...
what's the new intended base layer for HA addons?

Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions