1
0
Fork 0

feat: 优化 Act Runner 安装脚本

This commit is contained in:
wanghe-fit2cloud 2024-05-20 12:07:01 +08:00
parent d22d381581
commit de29b551a4
4 changed files with 43 additions and 35 deletions

View File

@ -1,31 +1,31 @@
additionalProperties: additionalProperties:
formFields: formFields:
- default: http://1.2.3.4:567 - default: http://1.2.3.4:3000
edit: true edit: true
envKey: GITEA_INSTANCE_URL envKey: GITEA_INSTANCE_URL
labelEn: Gitea instance URL labelEn: Gitea Instance
labelZh: Gitea 实例 URL labelZh: Gitea 实例
required: true required: true
rule: paramExtUrl rule: paramExtUrl
type: text type: text
- default: '' - default: '<registration_token>'
edit: true edit: true
envKey: RUNNER_REGISTRATION_TOKEN envKey: RUNNER_REGISTRATION_TOKEN
labelEn: Gitea runner REGISTRATION TOKEN labelEn: Registration Token
labelZh: Gitea runner REGISTRATION TOKEN labelZh: Registration Token
required: true required: true
type: text type: text
- default: '' - default: '<runner_name>'
edit: true edit: true
envKey: RUNNER_NAME envKey: RUNNER_NAME
labelEn: Gitea runner name labelEn: Runner Name
labelZh: Gitea runner name labelZh: Runner Name
required: true required: true
type: text type: text
- default: '' - default: '<runner_labels>'
edit: true edit: true
envKey: RUNNER_LABELS envKey: RUNNER_LABELS
labelEn: Gitea runner labels labelEn: Runner Labels
labelZh: Gitea runner labels labelZh: Runner Labels
required: true required: true
type: text type: text

View File

@ -1,5 +1,6 @@
services: services:
act_runner: act_runner:
image: gitea/act_runner:0.2.10
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}
restart: always restart: always
networks: networks:
@ -14,10 +15,8 @@ services:
- GITEA_RUNNER_REGISTRATION_TOKEN=${RUNNER_REGISTRATION_TOKEN} - GITEA_RUNNER_REGISTRATION_TOKEN=${RUNNER_REGISTRATION_TOKEN}
- GITEA_RUNNER_NAME=${RUNNER_NAME} - GITEA_RUNNER_NAME=${RUNNER_NAME}
- GITEA_RUNNER_LABELS=${RUNNER_LABELS} - GITEA_RUNNER_LABELS=${RUNNER_LABELS}
image: gitea/act_runner:0.2.10
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -1,3 +1,12 @@
# act runner # 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复制它并妥善保存。

View File

@ -1,11 +1,11 @@
name: Act runner name: Act Runner
tags: tags:
- DevOps - DevOps
title: Gitea Actions 的 Runner title: Gitea Actions 的 Runner
description: Gitea Actions 的 Runner description: Gitea Actions 的 Runner
additionalProperties: additionalProperties:
key: act_runner key: act_runner
name: Act runner name: Act Runner
tags: tags:
- DevOps - DevOps
shortDescZh: Gitea Actions 的 Runner shortDescZh: Gitea Actions 的 Runner