Use yaml files (#9)

This commit is contained in:
Joakim Sørensen
2021-09-26 17:05:37 +02:00
committed by GitHub
parent 0bbf0dd6cd
commit f7242ec678
8 changed files with 42 additions and 58 deletions

View File

@@ -1,4 +1,8 @@
<!-- https://developers.home-assistant.io/docs/add-ons/presentation#keeping-a-changelog -->
## 1.0.1
- Use yaml for config and build files
## 1.0.0
- Complete refresh of all files

View File

@@ -1,9 +0,0 @@
{
"build_from": {
"aarch64": "ghcr.io/home-assistant/aarch64-base:3.14",
"amd64": "ghcr.io/home-assistant/amd64-base:3.14",
"armhf": "ghcr.io/home-assistant/armhf-base:3.14",
"armv7": "ghcr.io/home-assistant/armv7-base:3.14",
"i386": "ghcr.io/home-assistant/i386-base:3.14"
}
}

7
example/build.yaml Normal file
View File

@@ -0,0 +1,7 @@
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-dockerfile
build_from:
aarch64: "ghcr.io/home-assistant/aarch64-base:3.14"
amd64: "ghcr.io/home-assistant/amd64-base:3.14"
armhf: "ghcr.io/home-assistant/armhf-base:3.14"
armv7: "ghcr.io/home-assistant/armv7-base:3.14"
i386: "ghcr.io/home-assistant/i386-base:3.14"

View File

@@ -1,16 +0,0 @@
{
"name": "Example add-on",
"version": "1.0.0",
"slug": "example",
"description": "Example add-on",
"url": "https://github.com/home-assistant/addons-example/tree/master/example",
"arch": [
"armhf",
"armv7",
"aarch64",
"amd64",
"i386"
],
"startup": "once",
"image": "ghcr.io/home-assistant/{arch}-addon-example"
}

14
example/config.yaml Normal file
View File

@@ -0,0 +1,14 @@
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
name: Example add-on
version: "1.0.1"
slug: example
description: Example add-on
url: "https://github.com/home-assistant/addons-example/tree/master/example"
arch:
- armhf
- armv7
- aarch64
- amd64
- i386
startup: once
image: "ghcr.io/home-assistant/{arch}-addon-example"