Fix: Container has timezone always set to UTC
All checks were successful
Build and deploy automation_rs / Build (push) Successful in 4m28s
Build and deploy automation_rs / Create container (push) Successful in 52s
Build and deploy automation_rs / Deploy Docker container (push) Successful in 33s

This became an issue once schedules where added, as they would run at
the wrong time.
In order to fix it the host's timezone information is mounted.
This commit is contained in:
Dreaded_X 2023-11-23 01:02:49 +01:00
parent 234e891418
commit e069c6272f
Signed by: Dreaded_X
GPG Key ID: FA5F485356B0D2D4

View File

@ -87,6 +87,7 @@ jobs:
--pull always \ --pull always \
--restart unless-stopped \ --restart unless-stopped \
--name automation_rs \ --name automation_rs \
-v /etc/localtime:/etc/localtime:ro \
-e RUST_LOG=automation=debug \ -e RUST_LOG=automation=debug \
-e MQTT_PASSWORD=${{ secrets.MQTT_PASSWORD }} \ -e MQTT_PASSWORD=${{ secrets.MQTT_PASSWORD }} \
-e HUE_TOKEN=${{ secrets.HUE_TOKEN }} \ -e HUE_TOKEN=${{ secrets.HUE_TOKEN }} \