Add Home Assistant Stelloauth app #1

Merged
dennis merged 17 commits from feat/home-assistant-stelloauth-addon into main 2026-09-24 20:19:49 +02:00
2 changed files with 10 additions and 10 deletions
Showing only changes of commit 712981af50 - Show all commits
+4 -2
View File
@@ -15,11 +15,13 @@ jobs:
timeout-minutes: 45 timeout-minutes: 45
steps: steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Validate runner architecture
run: test "$(uname -m)" = "x86_64"
- name: Build validation image - name: Build validation image
run: docker buildx build --platform linux/amd64 --file tests/Dockerfile.ci --load --tag homeassistant-stelloauth-tests:test . run: docker build --file tests/Dockerfile.ci --tag homeassistant-stelloauth-tests:test .
- name: Validate metadata, patches, and process manager - name: Validate metadata, patches, and process manager
run: docker run --rm homeassistant-stelloauth-tests:test -q run: docker run --rm homeassistant-stelloauth-tests:test -q
- name: Build amd64 image - name: Build amd64 image
run: docker buildx build --platform linux/amd64 --build-arg BUILD_ARCH=amd64 --load --tag homeassistant-stelloauth-addon:test stelloauth run: docker build --build-arg TARGETARCH=amd64 --build-arg BUILD_ARCH=amd64 --tag homeassistant-stelloauth-addon:test stelloauth
- name: Exercise runtime - name: Exercise runtime
run: SKIP_BUILD=1 tests/test_runtime.sh run: SKIP_BUILD=1 tests/test_runtime.sh
+6 -8
View File
@@ -147,18 +147,20 @@ def test_ci_builds_and_loads_only_the_amd64_test_image() -> None:
workflow = (ROOT / ".gitea/workflows/ci.yml").read_text(encoding="utf-8") workflow = (ROOT / ".gitea/workflows/ci.yml").read_text(encoding="utf-8")
parsed = yaml.safe_load(workflow) parsed = yaml.safe_load(workflow)
steps = parsed["jobs"]["validate"]["steps"] steps = parsed["jobs"]["validate"]["steps"]
architecture_command = next(
step["run"] for step in steps if step.get("name") == "Validate runner architecture"
)
assert architecture_command == 'test "$(uname -m)" = "x86_64"'
build_command = next( build_command = next(
step["run"] for step in steps if step.get("name") == "Build amd64 image" step["run"] for step in steps if step.get("name") == "Build amd64 image"
) )
assert build_command.split() == [ assert build_command.split() == [
"docker", "docker",
"buildx",
"build", "build",
"--platform", "--build-arg",
"linux/amd64", "TARGETARCH=amd64",
"--build-arg", "--build-arg",
"BUILD_ARCH=amd64", "BUILD_ARCH=amd64",
"--load",
"--tag", "--tag",
"homeassistant-stelloauth-addon:test", "homeassistant-stelloauth-addon:test",
"stelloauth", "stelloauth",
@@ -184,13 +186,9 @@ def test_ci_runs_validation_in_pinned_container() -> None:
) )
assert build_command.split() == [ assert build_command.split() == [
"docker", "docker",
"buildx",
"build", "build",
"--platform",
"linux/amd64",
"--file", "--file",
"tests/Dockerfile.ci", "tests/Dockerfile.ci",
"--load",
"--tag", "--tag",
"homeassistant-stelloauth-tests:test", "homeassistant-stelloauth-tests:test",
".", ".",