From 7defcabdc37cea70177299329f20bdf69ac1c1fc Mon Sep 17 00:00:00 2001 From: Manus AI Date: Tue, 18 Aug 2026 08:32:17 +0000 Subject: [PATCH] fix(ci): conserver l enregistrement du runner Gitea --- ops/gitea-act-runner.service | 1 + ops/install-gitea-act-runner.sh | 15 +++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ops/gitea-act-runner.service b/ops/gitea-act-runner.service index 64738f7..adb2564 100644 --- a/ops/gitea-act-runner.service +++ b/ops/gitea-act-runner.service @@ -7,6 +7,7 @@ Wants=network-online.target [Service] Type=simple User=root +WorkingDirectory=/opt/manus-deploy/gitea-runner Environment=DOCKER_HOST=unix:///var/run/docker.sock ExecStart=/usr/local/bin/act_runner daemon --config /opt/manus-deploy/gitea-runner/config.yaml Restart=always diff --git a/ops/install-gitea-act-runner.sh b/ops/install-gitea-act-runner.sh index d7cea5f..da58dd8 100644 --- a/ops/install-gitea-act-runner.sh +++ b/ops/install-gitea-act-runner.sh @@ -15,12 +15,15 @@ install -D -m 0644 "${SCRIPT_DIR}/gitea-act-runner.service" /etc/systemd/system/ if [[ ! -f "${RUNNER_DIR}/.runner" ]]; then token="$(docker exec -u git "${GITEA_CONTAINER}" gitea actions generate-runner-token)" - /usr/local/bin/act_runner register --no-interactive \ - --instance "${GITEA_URL}" \ - --token "${token}" \ - --name "${RUNNER_NAME}" \ - --labels "${RUNNER_LABELS}" \ - --config "${RUNNER_DIR}/config.yaml" + ( + cd "${RUNNER_DIR}" + /usr/local/bin/act_runner register --no-interactive \ + --instance "${GITEA_URL}" \ + --token "${token}" \ + --name "${RUNNER_NAME}" \ + --labels "${RUNNER_LABELS}" \ + --config "${RUNNER_DIR}/config.yaml" + ) fi systemctl daemon-reload