mirror of
https://gitea.com/gitea/docs.git
synced 2026-07-08 22:46:17 +00:00
Reviewed-on: https://gitea.com/gitea/docs/pulls/265 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: ifurther <55025025+ifurther@users.noreply.github.com> Co-committed-by: ifurther <55025025+ifurther@users.noreply.github.com>
43 lines
1.9 KiB
Markdown
43 lines
1.9 KiB
Markdown
---
|
||
date: "2023-05-24T15:00:00+08:00"
|
||
slug: "overview"
|
||
sidebar_position: 1
|
||
---
|
||
|
||
# Overview
|
||
|
||
从Gitea **1.19**版本开始,Gitea Actions成為了内置的CI/CD解决方案。
|
||
|
||
## 名稱
|
||
|
||
Gitea Actions与[GitHub Actions](https://github.com/features/actions)相似且兼容,它的名稱也受到了它的启发。
|
||
為了避免混淆,在这里我们明确了拼写方式:
|
||
|
||
- "Gitea Actions"(两个單詞都大写且带有"s")是Gitea功能的名稱。
|
||
- "GitHub Actions"是GitHub功能的名稱。
|
||
- "Actions"根据上下文的不同可以指代以上任意一个。在本文檔中指代的是"Gitea Actions"。
|
||
- "action"或"actions"指代一些要使用的脚本/插件,比如"actions/checkout@v4"或"actions/cache@v3"。
|
||
|
||
## Runner
|
||
|
||
和其他CI/CD解决方案一样,Gitea不会自己运行Job,而是将Job委托给Runner。
|
||
Gitea Actions的Runner被稱為[act runner](https://gitea.com/gitea/act_runner),它是一个独立的程序,也是用Go语言编写的。
|
||
它是基于[nektos/act](http://github.com/nektos/act)的一个[分支](https://gitea.com/gitea/act) 。
|
||
|
||
由于Runner是独立部署的,可能存在潜在的安全问题。
|
||
為了避免这些问题,請遵循两个简單的規則:
|
||
|
||
- 不要為你的存放庫、組織或实例使用你不信任的Runner。
|
||
- 不要為你不信任的存放庫、組織或实例提供Runner。
|
||
|
||
對於内部使用的Gitea实例,比如企业或个人使用的实例,这两个規則不是问题,它们自然而然就是如此。
|
||
然而,對於公共的Gitea实例,比如[gitea.com](https://gitea.com),在添加或使用Runner时應当牢记这两个規則。
|
||
|
||
## 状态
|
||
|
||
Gitea Actions仍然在开发中,因此可能存在一些错误和缺失的功能。
|
||
並且在稳定版本(v1.20或更高版本)之前可能会進行一些重大的更改。
|
||
|
||
如果情况发生变化,我们将在此处進行更新。
|
||
因此,請在其他地方找到過时文章时参考此处的内容。
|