You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/hassio/addon_publishing.markdown
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -9,42 +9,42 @@ sharing: true
9
9
footer: true
10
10
---
11
11
12
-
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:
12
+
At the end, all add-ons are simple docker container. You can use our [build scripts][builder] that automate the whole process or you can build your own docker image and push it manually to a docker hub. Inside your addon `config.json` you specify the Docker image that will be installed for your add-on:
13
+
13
14
```json
14
-
{
15
-
"image": "myhub/image-addon-name"
16
-
}
17
15
{
18
16
"image": "myhub/image-{arch}-addon-name"
19
17
}
20
18
```
21
19
22
-
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.
20
+
You can use `{arch}` inside the image name to support multiple architectures with 1 configuration file. It will be replaced with the architecture of the user when we load the image.
23
21
24
-
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.
22
+
Development best practices is to merge your changes into a branch like `build`. After you push the addon to docker hub, you can merge this branch to master.
25
23
26
24
## {% linkable_title Custom Add-ons %}
27
25
28
-
You need a docker hub account. It is also possible to use our own docker registrator. Download our [build script][builder] local.
26
+
You need a docker hub accountto make your own add-ons. Download our [build script][builder] local.
29
27
30
28
For a git repository:
29
+
31
30
```bash
32
31
# Test only:
33
32
./create_hassio_addon.sh -a amd64 -s addon-slug -r https://github.com/xy/addons -b branchname
34
33
35
-
# push do docker hub:
34
+
# push to docker hub:
36
35
./create_hassio_addon.sh -a amd64 -s addon-slug -r https://github.com/xy/addons -b branchname -p
0 commit comments