Compare commits

..

2 Commits

Author SHA1 Message Date
915fb3f1a0 feat(config)!: Changed default config location
All checks were successful
Build and deploy / build (push) Successful in 10m51s
Build and deploy / Deploy container (push) Has been skipped
2025-10-19 05:05:05 +02:00
954b220c48 feat(config)!: Config now returns the mqtt config instead of the client
Instead the client is now created on the rust side based on the config.
Devices that require the mqtt client will now instead need to be
constructor using a function. This function receives the mqtt client.
2025-10-19 05:04:47 +02:00
3 changed files with 2 additions and 4 deletions

View File

@@ -21,6 +21,5 @@ RUN cargo auditable build --release
FROM gcr.io/distroless/cc-debian12:nonroot AS runtime FROM gcr.io/distroless/cc-debian12:nonroot AS runtime
COPY --from=builder /app/target/release/automation /app/automation COPY --from=builder /app/target/release/automation /app/automation
ENV AUTOMATION__ENTRYPOINT=/app/config.lua COPY ./config /app/config
COPY ./config.lua /app/config.lua
CMD [ "/app/automation" ] CMD [ "/app/automation" ]

View File

@@ -1,5 +1,4 @@
local devices = require("automation:devices") local devices = require("automation:devices")
local device_manager = require("automation:device_manager")
local utils = require("automation:utils") local utils = require("automation:utils")
local secrets = require("automation:secrets") local secrets = require("automation:secrets")
local debug = require("automation:variables").debug and true or false local debug = require("automation:variables").debug and true or false

View File

@@ -20,7 +20,7 @@ pub struct Setup {
} }
fn default_entrypoint() -> String { fn default_entrypoint() -> String {
"./config.lua".into() "./config/config.lua".into()
} }
#[derive(Debug, Deserialize, Typed)] #[derive(Debug, Deserialize, Typed)]