fix(forgejo-runner): use hostname command instead of $HOSTNAME variable

core.func overwrites $HOSTNAME with a formatted emoji string for display
purposes, causing runner registration to send garbled ANSI codes as the
runner name. Use $(hostname) to get the actual system hostname.
This commit is contained in:
Cyra
2026-03-29 18:22:13 -07:00
parent cb9782df2c
commit 034a196720

View File

@@ -63,7 +63,7 @@ export DOCKER_HOST="unix:///run/podman/podman.sock"
forgejo-runner register \
--instance "$FORGEJO_INSTANCE" \
--token "$FORGEJO_RUNNER_TOKEN" \
--name "$HOSTNAME" \
--name "$(hostname)" \
--labels "$RUNNER_LABELS" \
--no-interactive
msg_ok "Registered Forgejo Runner"