Commit Graph

11 Commits

Author SHA1 Message Date
8bb17e1440 feat(config)!: Reworked how configuration is loaded
The environment variable `AUTOMATION_CONFIG` has been renamed to
`AUTOMATION__ENTRYPOINT` and can now also be set in `automation.toml` by
specifying:
```
automation = "<path>"
```

Directly accessing the environment variables in lua in no longer
possible. To pass in configuration or secrets you can now instead make
use of the `variables` and `secrets` modules.

To set values in these modules you can either specify them in
`automation.toml`:
```
[variables]
<name> = <value>

[secrets]
<name> = <value>
```
Note that these values will get converted to a string.

You can also specify the environment variables
`AUTOMATION__VARIABLES__<name>` and `AUTOMATION__SECRETS__<name>` to
set variables and secrets respectively. By adding the suffix `__FILE` to
the environment variable name the contents of a file can be loaded into
the variable or secret.

Note that variables and secrets are identical in functionality and the
name difference exists purely to make it clear that secret values are
meant to be kept secret.
2025-09-05 04:48:00 +02:00
c5262dcf35 Update to rust 1.89 and edition 2024 2025-08-31 00:38:58 +02:00
01e88eeb3b Use new and improved rust workflow and Dockerfile 2025-08-31 00:38:58 +02:00
5bf6e6bc3c Fixed build after gitea update 2024-07-08 23:25:20 +02:00
2ff59872b2 Moved last config items to lua + small cleanup 2024-05-07 00:05:37 +02:00
c77064b5b9 Feature: Use Gitea Actions to build automation_rs
All checks were successful
Build and deploy automation_rs / Build (push) Successful in 6m39s
Build and deploy automation_rs / Create Docker container (push) Successful in 1m1s
Builds automation_rs and the corresponding docker image.
The binary is uploaded as an artifact and the image is uploaded to the
registry.

In order to improve caching the nightly version is locked using
rust-toolchain.toml
2023-11-22 00:40:05 +01:00
74161d909e Fixed build to use yml file
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-06 00:20:12 +01:00
7ee40f6bb8 Fixed glibc mismatch
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-02 06:33:08 +02:00
f8d1975f85 Fixed build
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-12 05:28:51 +02:00
90eedbf86e Improved Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-17 18:01:37 +01:00
917deb717f Added Dockerfile and drone config to auto build and deploy new versions
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-17 17:41:47 +01:00