diff --git a/act_runner/0.2.10/data.yml b/act_runner/0.2.10/data.yml index fddf5e17f..8fdae3ec9 100644 --- a/act_runner/0.2.10/data.yml +++ b/act_runner/0.2.10/data.yml @@ -1,31 +1,31 @@ additionalProperties: - formFields: - - default: http://1.2.3.4:567 - edit: true - envKey: GITEA_INSTANCE_URL - labelEn: Gitea instance URL - labelZh: Gitea 实例 URL - required: true - rule: paramExtUrl - type: text - - default: '' - edit: true - envKey: RUNNER_REGISTRATION_TOKEN - labelEn: Gitea runner REGISTRATION TOKEN - labelZh: Gitea runner REGISTRATION TOKEN - required: true - type: text - - default: '' - edit: true - envKey: RUNNER_NAME - labelEn: Gitea runner name - labelZh: Gitea runner name - required: true - type: text - - default: '' - edit: true - envKey: RUNNER_LABELS - labelEn: Gitea runner labels - labelZh: Gitea runner labels - required: true - type: text + formFields: + - default: http://1.2.3.4:3000 + edit: true + envKey: GITEA_INSTANCE_URL + labelEn: Gitea Instance + labelZh: Gitea 实例 + required: true + rule: paramExtUrl + type: text + - default: '' + edit: true + envKey: RUNNER_REGISTRATION_TOKEN + labelEn: Registration Token + labelZh: Registration Token + required: true + type: text + - default: '' + edit: true + envKey: RUNNER_NAME + labelEn: Runner Name + labelZh: Runner Name + required: true + type: text + - default: '' + edit: true + envKey: RUNNER_LABELS + labelEn: Runner Labels + labelZh: Runner Labels + required: true + type: text diff --git a/act_runner/0.2.10/docker-compose.yml b/act_runner/0.2.10/docker-compose.yml index 64045fb91..7ad74160c 100644 --- a/act_runner/0.2.10/docker-compose.yml +++ b/act_runner/0.2.10/docker-compose.yml @@ -1,5 +1,6 @@ services: act_runner: + image: gitea/act_runner:0.2.10 container_name: ${CONTAINER_NAME} restart: always networks: @@ -14,10 +15,8 @@ services: - GITEA_RUNNER_REGISTRATION_TOKEN=${RUNNER_REGISTRATION_TOKEN} - GITEA_RUNNER_NAME=${RUNNER_NAME} - GITEA_RUNNER_LABELS=${RUNNER_LABELS} - image: gitea/act_runner:0.2.10 labels: createdBy: "Apps" - networks: 1panel-network: external: true diff --git a/act_runner/README.md b/act_runner/README.md index a330241f4..3671fe827 100644 --- a/act_runner/README.md +++ b/act_runner/README.md @@ -1,3 +1,12 @@ # act runner -Act runner是一个基于[Gitea fork](https://gitea.com/gitea/act)的[Gitea](https://github.com/nektos/act)上的运行器。 +**Act runner** 是一个基于 [Gitea fork](https://gitea.com/gitea/act) 的 [Gitea](https://github.com/nektos/act) 上的运行器。 + +## 如何获取 RUNNER_REGISTRATION_TOKEN + +1. 登录到您的 Gitea 实例。 +2. 转到您存储仓库的页面。 +3. 点击页面上方的 "Settings"(设置)。 +4. 在左侧菜单中选择 "Actions"(操作)。 +5. 您将在页面上看到 "Runners"(运行器)部分。在这里,您应该能够找到一个 "New Runner"(创建 Runner)按钮。 +6. 点击 "New Runner"(创建 Runner)按钮,您将获得一个 RUNNER_REGISTRATION_TOKEN,复制它并妥善保存。 diff --git a/act_runner/data.yml b/act_runner/data.yml index c101cdfac..23b91bc6e 100644 --- a/act_runner/data.yml +++ b/act_runner/data.yml @@ -1,11 +1,11 @@ -name: Act runner +name: Act Runner tags: - DevOps title: Gitea Actions 的 Runner description: Gitea Actions 的 Runner additionalProperties: key: act_runner - name: Act runner + name: Act Runner tags: - DevOps shortDescZh: Gitea Actions 的 Runner