Compare commits

2 Commits

Author SHA1 Message Date
7b83ed88f2 fix: Chef cook uses wrong toolchain
Some checks failed
Build and deploy / build (push) Failing after 1m10s
Build and deploy / Deploy container (push) Has been skipped
This adds a toolchain setup step to the base image so we do not have to
do it multiple times
2025-11-17 04:53:57 +01:00
af1e6ac133 chore: Upgraded to new workflow 2025-11-17 04:53:56 +01:00
3 changed files with 24 additions and 17 deletions

View File

@@ -9,7 +9,7 @@ on:
jobs: jobs:
build: build:
uses: dreaded_x/workflows/.gitea/workflows/docker-kubernetes.yaml@ef78704b98c72e4a6b8340f9bff7b085a7bdd95c uses: dreaded_x/workflows/.gitea/workflows/docker-kubernetes.yaml@826757a257ad7684b918a21217637f34d1ee1af1
secrets: inherit secrets: inherit
with: with:
push_manifests: false push_manifests: false
@@ -37,7 +37,7 @@ jobs:
-e AUTOMATION__SECRETS__MQTT_PASSWORD=${{ secrets.MQTT_PASSWORD }} \ -e AUTOMATION__SECRETS__MQTT_PASSWORD=${{ secrets.MQTT_PASSWORD }} \
-e AUTOMATION__SECRETS__HUE_TOKEN=${{ secrets.HUE_TOKEN }} \ -e AUTOMATION__SECRETS__HUE_TOKEN=${{ secrets.HUE_TOKEN }} \
-e AUTOMATION__SECRETS__NTFY_TOPIC=${{ secrets.NTFY_TOPIC }} \ -e AUTOMATION__SECRETS__NTFY_TOPIC=${{ secrets.NTFY_TOPIC }} \
$(echo ${{ toJSON(needs.build.outputs.images) }} | jq .automation -r) git.huizinga.dev/dreaded_x/automation_rs@${{ needs.build.outputs.digest }}
docker network connect web automation_rs docker network connect web automation_rs

View File

@@ -25,18 +25,10 @@ function module.setup(mqtt_client)
}) })
windows.add(window) windows.add(window)
local printer = devices.OutletOnOff.new({
name = "3D Printer",
room = "Guest Room",
topic = helper.mqtt_z2m("guest/printer"),
client = mqtt_client,
})
--- @type Module --- @type Module
return { return {
light, light,
window, window,
printer,
} }
end end

View File

@@ -7,12 +7,27 @@ group "default" {
target "docker-metadata-action" {} target "docker-metadata-action" {}
# TODO: Auto include this from the workflow
target "common" {
cache-from = [
{
type = "gha"
}
]
cache-to = [
{
type = "gha"
mode = "max"
}
]
args = {
RELEASE_VERSION = "${RELEASE_VERSION}"
}
}
target "automation" { target "automation" {
inherits = ["docker-metadata-action"] inherits = ["docker-metadata-action", "common"]
context = "./" context = "./"
dockerfile = "Dockerfile" dockerfile = "Dockerfile"
tags = [for tag in target.docker-metadata-action.tags : "${TAG_BASE}:${tag}"] tags = [for tag in target.docker-metadata-action.tags : "${TAG_BASE}:${tag}"]
args = {
RELEASE_VERSION="${RELEASE_VERSION}"
}
} }