From 12d38bdedf87b04f4b6bd70a1756c44bc661f323 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 9 Nov 2021 17:09:20 +0100 Subject: [PATCH] Migrate JSON config to YAML --- .github/labels.yml | 85 ------------------------------------- .github/release-drafter.yml | 57 ------------------------- zerotier/build.json | 9 ---- zerotier/build.yaml | 7 +++ zerotier/config.json | 29 ------------- zerotier/config.yaml | 34 +++++++++++++++ 6 files changed, 41 insertions(+), 180 deletions(-) delete mode 100644 .github/labels.yml delete mode 100644 .github/release-drafter.yml delete mode 100644 zerotier/build.json create mode 100644 zerotier/build.yaml delete mode 100755 zerotier/config.json create mode 100644 zerotier/config.yaml diff --git a/.github/labels.yml b/.github/labels.yml deleted file mode 100644 index 2d0f68a..0000000 --- a/.github/labels.yml +++ /dev/null @@ -1,85 +0,0 @@ ---- -- name: "breaking-change" - color: ee0701 - description: "A breaking change for existing users." -- name: "bugfix" - color: ee0701 - description: "Inconsistencies or issues which will cause a problem for users or implementors." -- name: "documentation" - color: 0052cc - description: "Solely about the documentation of the project." -- name: "enhancement" - color: 1d76db - description: "Enhancement of the code, not introducing new features." -- name: "refactor" - color: 1d76db - description: "Improvement of existing code, not introducing new features." -- name: "performance" - color: 1d76db - description: "Improving performance, not introducing new features." -- name: "new-feature" - color: 0e8a16 - description: "New features or options." -- name: "maintenance" - color: 2af79e - description: "Generic maintenance tasks." -- name: "ci" - color: 1d76db - description: "Work that improves the continue integration." -- name: "dependencies" - color: 1d76db - description: "Upgrade or downgrade of project dependencies." - -- name: "in-progress" - color: fbca04 - description: "Issue is currently being resolved by a developer." -- name: "stale" - color: fef2c0 - description: "There has not been activity on this issue or PR for quite some time." -- name: "no-stale" - color: fef2c0 - description: "This issue or PR is exempted from the stable bot." - -- name: "security" - color: ee0701 - description: "Marks a security issue that needs to be resolved asap." -- name: "incomplete" - color: fef2c0 - description: "Marks a PR or issue that is missing information." -- name: "invalid" - color: fef2c0 - description: "Marks a PR or issue that is missing information." - -- name: "beginner-friendly" - color: 0e8a16 - description: "Good first issue for people wanting to contribute to the project." -- name: "help-wanted" - color: 0e8a16 - description: "We need some extra helping hands or expertise in order to resolve this." - -- name: "hacktoberfest" - description: "Issues/PRs are participating in the Hacktoberfest." - color: fbca04 -- name: "hacktoberfest-accepted" - description: "Issues/PRs are participating in the Hacktoberfest." - color: fbca04 - -- name: "priority-critical" - color: ee0701 - description: "This should be dealt with ASAP. Not fixing this issue would be a serious error." -- name: "priority-high" - color: b60205 - description: "After critical issues are fixed, these should be dealt with before any further issues." -- name: "priority-medium" - color: 0e8a16 - description: "This issue may be useful, and needs some attention." -- name: "priority-low" - color: e4ea8a - description: "Nice addition, maybe... someday..." - -- name: "major" - color: b60205 - description: "This PR causes a major version bump in the version number." -- name: "minor" - color: 0e8a16 - description: "This PR causes a minor version bump in the version number." diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index cb404ea..0000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,57 +0,0 @@ ---- -name-template: "v$RESOLVED_VERSION" -tag-template: "v$RESOLVED_VERSION" -change-template: "- $TITLE @$AUTHOR (#$NUMBER)" -sort-direction: ascending - -categories: - - title: "🚨 Breaking changes" - labels: - - "breaking-change" - - title: "✨ New features" - labels: - - "new-feature" - - title: "πŸ› Bug fixes" - labels: - - "bugfix" - - title: "πŸš€ Enhancements" - labels: - - "enhancement" - - "refactor" - - "performance" - - title: "🧰 Maintenance" - labels: - - "maintenance" - - "ci" - - title: "πŸ“š Documentation" - labels: - - "documentation" - - title: "⬆️ Dependency updates" - labels: - - "dependencies" - -version-resolver: - major: - labels: - - "major" - - "breaking-change" - minor: - labels: - - "minor" - - "new-feature" - patch: - labels: - - "bugfix" - - "chore" - - "ci" - - "dependencies" - - "documentation" - - "enhancement" - - "performance" - - "refactor" - default: patch - -template: | - ## What’s changed - - $CHANGES diff --git a/zerotier/build.json b/zerotier/build.json deleted file mode 100644 index e55dc95..0000000 --- a/zerotier/build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "build_from": { - "aarch64": "ghcr.io/hassio-addons/base/aarch64:10.1.0", - "amd64": "ghcr.io/hassio-addons/base/amd64:10.1.0", - "armhf": "ghcr.io/hassio-addons/base/armhf:10.1.0", - "armv7": "ghcr.io/hassio-addons/base/armv7:10.1.0", - "i386": "ghcr.io/hassio-addons/base/i386:10.1.0" - } -} diff --git a/zerotier/build.yaml b/zerotier/build.yaml new file mode 100644 index 0000000..4fe7c07 --- /dev/null +++ b/zerotier/build.yaml @@ -0,0 +1,7 @@ +--- +build_from: + aarch64: ghcr.io/hassio-addons/base/aarch64:10.1.0 + amd64: ghcr.io/hassio-addons/base/amd64:10.1.0 + armhf: ghcr.io/hassio-addons/base/armhf:10.1.0 + armv7: ghcr.io/hassio-addons/base/armv7:10.1.0 + i386: ghcr.io/hassio-addons/base/i386:10.1.0 diff --git a/zerotier/config.json b/zerotier/config.json deleted file mode 100755 index 77b40ab..0000000 --- a/zerotier/config.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "ZeroTier One", - "version": "dev", - "slug": "zerotier", - "description": "Radically simplify your network with a virtual networking layer that works the same everywhere", - "url": "https://github.com/hassio-addons/addon-zerotier", - "startup": "services", - "init": false, - "arch": ["aarch64", "amd64", "armhf", "armv7", "i386"], - "ports": { - "9993/tcp": 9993 - }, - "ports_description": { - "9993/tcp": "ZeroTier's primary port" - }, - "host_network": true, - "privileged": ["NET_ADMIN", "SYS_ADMIN"], - "devices": ["/dev/net/tun"], - "map": ["ssl:rw"], - "options": { - "networks": [], - "api_auth_token": "" - }, - "schema": { - "networks": ["match(^!secret [a-zA-Z0-9_\\-]+$|[0-9a-z]{16})"], - "api_auth_token": "str", - "log_level": "list(trace|debug|info|notice|warning|error|fatal)?" - } -} diff --git a/zerotier/config.yaml b/zerotier/config.yaml new file mode 100644 index 0000000..c9aca59 --- /dev/null +++ b/zerotier/config.yaml @@ -0,0 +1,34 @@ +--- +name: ZeroTier One +version: dev +slug: zerotier +description: Radically simplify your network with a virtual networking layer that works the same everywhere +url: https://github.com/hassio-addons/addon-zerotier +startup: services +init: false +arch: + - aarch64 + - amd64 + - armhf + - armv7 + - i386 +ports: + 9993/tcp: 9993 +ports_description: + 9993/tcp: ZeroTier's primary port +host_network: true +privileged: + - NET_ADMIN + - SYS_ADMIN +devices: + - /dev/net/tun +map: + - ssl:rw +options: + networks: [] + api_auth_token: "" +schema: + networks: + - match(^!secret [a-zA-Z0-9_\-]+$|[0-9a-z]{16}) + api_auth_token: str + log_level: list(trace|debug|info|notice|warning|error|fatal)?