Compare commits

..

7 Commits

Author SHA1 Message Date
01dfc6b81e
Improved google_home tests
All checks were successful
Build and deploy / Build application (push) Successful in 3m45s
Check / Run checks (push) Successful in 2m16s
Build and deploy / Build container (push) Successful in 48s
Build and deploy / Deploy container (push) Successful in 36s
2024-07-09 00:00:00 +02:00
758500a071
Cleanup 2024-07-09 00:00:00 +02:00
9aa16e3ef8
Started actually using the google home trait macro 2024-07-09 00:00:00 +02:00
d84ff8ec8e
Initial google home trait macro 2024-07-08 23:59:59 +02:00
fb7af4a8b1
Added caching to pre-commit checks
All checks were successful
Build and deploy / Build application (push) Successful in 3m46s
Check / Run checks (push) Successful in 3m53s
Build and deploy / Build container (push) Successful in 46s
Build and deploy / Deploy container (push) Successful in 34s
2024-07-08 23:34:50 +02:00
c6e63750d0
Fixed bathroom light
All checks were successful
Build and deploy / Build application (push) Successful in 3m48s
Check / Run checks (push) Successful in 3m20s
Build and deploy / Build container (push) Successful in 1m49s
Build and deploy / Deploy container (push) Successful in 38s
2024-07-08 23:25:24 +02:00
5bf6e6bc3c
Fixed build after gitea update 2024-07-08 23:25:20 +02:00
4 changed files with 20 additions and 6 deletions

View File

@ -26,7 +26,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: build
name: automation
path: target/x86_64-unknown-linux-gnu/release/automation
container:
@ -41,12 +41,12 @@ jobs:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: build
name: automation
- name: Set permissions
run: |
chown 65532:65532 ./build/*
chmod 0755 ./build/*
chown 65532:65532 ./automation
chmod 0755 ./automation
- name: Docker meta
id: meta

View File

@ -12,6 +12,20 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- uses: https://gitea.com/actions/go-hashfiles@v0.0.1
id: get-hash
with:
patterns: |-
.pre-commit-config.yaml
- name: set PY
run: echo "PY=$(python -VV | sha256sum | cut -d ' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ steps.get-hash.outputs.hash }}
- name: Run pre-commit
run: SKIP=sqlx-prepare pre-commit run --show-diff-on-failure --color=always --all-files
shell: bash

View File

@ -3,6 +3,6 @@ FROM gcr.io/distroless/cc-debian12:nonroot
ENV AUTOMATION_CONFIG=/app/config.lua
COPY ./config.lua /app/config.lua
COPY ./build/automation /app/automation
COPY ./automation /app/automation
CMD ["/app/automation"]

View File

@ -109,7 +109,7 @@ automation.device_manager:add(IkeaOutlet.new({
outlet_type = "Light",
name = "Light",
room = "Bathroom",
topic = mqtt_z2m("batchroom/light"),
topic = mqtt_z2m("bathroom/light"),
client = mqtt_client,
timeout = debug and 60 or 45 * 60,
}))