CI: MQTT_URL and MQTT_USERNAME may be Actions variables (not secret), falling back to secrets
This commit is contained in:
1 parent
02c2ef05f8
commit
6b6a7f0027
2 files changed
+5
-4
No files matched your search
@@ -112,8 +112,8 @@ jobs:
|
|||||||
P4N_USER=${{ secrets.P4N_USER }}
|
P4N_USER=${{ secrets.P4N_USER }}
|
||||||
P4N_PASSWORD=${{ secrets.P4N_PASSWORD }}
|
P4N_PASSWORD=${{ secrets.P4N_PASSWORD }}
|
||||||
P4N_SESSION_COOKIE=${{ secrets.P4N_SESSION_COOKIE }}
|
P4N_SESSION_COOKIE=${{ secrets.P4N_SESSION_COOKIE }}
|
||||||
MQTT_URL=${{ secrets.MQTT_URL }}
|
MQTT_URL=${{ vars.MQTT_URL || secrets.MQTT_URL }}
|
||||||
MQTT_USERNAME=${{ secrets.MQTT_USERNAME }}
|
MQTT_USERNAME=${{ vars.MQTT_USERNAME || secrets.MQTT_USERNAME }}
|
||||||
MQTT_PASSWORD=${{ secrets.MQTT_PASSWORD }}
|
MQTT_PASSWORD=${{ secrets.MQTT_PASSWORD }}
|
||||||
EOF
|
EOF
|
||||||
chmod 600 /srv/podman/maptool/.env
|
chmod 600 /srv/podman/maptool/.env
|
||||||
|
|||||||
@@ -162,8 +162,9 @@ id/secret to store as the two `OAUTH_CLIENT_*` secrets above.
|
|||||||
usernames, e.g. `randy,friend1,friend2` — not their emails, the
|
usernames, e.g. `randy,friend1,friend2` — not their emails, the
|
||||||
`login` field from Gitea's `/api/v1/user`.
|
`login` field from Gitea's `/api/v1/user`.
|
||||||
|
|
||||||
Optional: `MQTT_URL`, `MQTT_USERNAME`, `MQTT_PASSWORD` (same names as
|
Optional: `MQTT_URL`, `MQTT_USERNAME`, `MQTT_PASSWORD` (same names in
|
||||||
secrets and in `.env`) — the home MQTT broker the car's ESPHome nodes
|
`.env`; the URL and username aren't secret and may be Actions
|
||||||
|
*Variables* instead of Secrets, the password a Secret) — the home MQTT broker the car's ESPHome nodes
|
||||||
publish to, read by `/api/live` (the "Vehicle & ITS-G5" overlay): the
|
publish to, read by `/api/live` (the "Vehicle & ITS-G5" overlay): the
|
||||||
GNSS tracker's `mcu-tracker/location` and the ITS-G5 receiver's
|
GNSS tracker's `mcu-tracker/location` and the ITS-G5 receiver's
|
||||||
`mcu-its-g5/decoded`. Use a read-only broker user limited to those
|
`mcu-its-g5/decoded`. Use a read-only broker user limited to those
|
||||||
|
|||||||
Reference in new issue
Block a user