mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Update addon_publishing.markdown
This commit is contained in:
parent
48b49f7047
commit
4382a3be4f
@ -9,7 +9,7 @@ sharing: true
|
||||
footer: true
|
||||
---
|
||||
|
||||
At the end, all add-ons are simple docker container. You can use our build scripts for automate the hole process our you can build your own docker image and push it manual do a docker hub. Inside your addon `config.json` can you use:
|
||||
At the end, all add-ons are simple docker container. You can use our [build scripts][builder] for automate the hole process our you can build your own docker image and push it manual do a docker hub. Inside your addon `config.json` can you use:
|
||||
```json
|
||||
{
|
||||
"image": "myhub/image-addon-name"
|
||||
@ -21,9 +21,34 @@ At the end, all add-ons are simple docker container. You can use our build scrip
|
||||
|
||||
To specify from where it will load the addon by user installation. With `{arch}` inside image name, you can build your addon for multible architectures.
|
||||
|
||||
Best praxis is to merge change into a branch like `build`. After you push the addon to docker hub, you can merge this branch to master.
|
||||
|
||||
## {% linkable_title Custom Add-ons %}
|
||||
|
||||
You need a docker hub account. It is also possible to use our own docker registrator.
|
||||
You need a docker hub account. It is also possible to use our own docker registrator. Download our [build script][builder] local.
|
||||
|
||||
For a git repository:
|
||||
```bash
|
||||
# Test only:
|
||||
./create_hassio_addon.sh -a amd64 -s addon-slug -r https://github.com/xy/addons -b branchname
|
||||
|
||||
# push do docker hub:
|
||||
./create_hassio_addon.sh -a amd64 -s addon-slug -r https://github.com/xy/addons -b branchname -p
|
||||
|
||||
# create for all supported arch:
|
||||
./create_addon_all.sh -s addon-slug -r https://github.com/xy/addons -b branchname -p
|
||||
```
|
||||
|
||||
For a local repository:
|
||||
```bash
|
||||
# Test only:
|
||||
./create_hassio_addon.sh -a amd64 -s addon-slug -l /home/xy/my_local_repo
|
||||
|
||||
# push do docker hub:
|
||||
./create_hassio_addon.sh -a amd64 -s addon-slug -l /home/xy/my_local_repo -p
|
||||
```
|
||||
|
||||
## {% linkable_title Core Add-ons %}
|
||||
|
||||
|
||||
[builder]: https://github.com/home-assistant/hassio-build/tree/master/build-scripts/addons
|
||||
|
Loading…
x
Reference in New Issue
Block a user