为 cloud-init Runner 设置 HOME
test / python (pull_request) Successful in 11s
test / shell (pull_request) Failing after 21s

This commit is contained in:
2026-09-16 16:48:44 +00:00
parent ac85d5fe58
commit 02e0b698c5
+1
View File
@@ -7,6 +7,7 @@ runner_name=${3:?runner name is required}
runner_labels=${4:?runner labels are required}
token_file=/run/gitea-runner-registration-token
config_file=${GITEA_RUNNER_CONFIG_FILE:-/etc/gitea-runner/config-vm-bootstrap.yaml}
export HOME=${HOME:-/root}
cleanup() {
rm -f -- "$token_file"