add gitea_runner_python

This commit is contained in:
Timi
2026-09-28 11:56:22 +08:00
parent b3a696a173
commit e737abf0a0
3 changed files with 91 additions and 0 deletions
+16
View File
@@ -57,6 +57,21 @@ env:
JAVA_HOME: /usr/lib/jvm/java-1.8-openjdk
```
### gitea_runner_python
基于 `gitea_runner_base` 的 Python 开发镜像,包含:
- Python 3、pip 和 virtualenv
- Python 原生扩展常用编译工具(C/C++、Rust、OpenSSL、libffi)
- 基础镜像中的 Node.js、Git、Bash、SSH 和 `sshpass`
Python 版本由基础镜像对应的 Alpine 仓库提供。job 容器直接使用镜像内的 Python,不需要 `actions/setup-python`。
```bash
./rebuild.sh gitea_runner_base latest
./rebuild.sh gitea_runner_python latest
```
### gitea_runner_electron
基于 `electronuserland/builder:wine` 的 Electron 三平台打包镜像,包含:
@@ -87,6 +102,7 @@ docker build -t gitea_runner_base ./gitea_runner_base
# 2. 再构建语言环境镜像
docker build -t gitea_runner_node ./gitea_runner_node
docker build -t gitea_runner_java ./gitea_runner_java
docker build -t gitea_runner_python ./gitea_runner_python
# 3. Electron 镜像基于官方 Wine 镜像,可独立构建
docker build -t gitea_runner_electron ./gitea_runner_electron