通过docker-compose.yml启动act_runner容器 version:"3.8"services:runner:image:gitea/act_runner:nightlyenvironment:CONFIG_FILE:/config.yamlGITEA_INSTANCE_URL:"${INSTANCE_URL}"GITEA_RUNNER_REGISTRATION_TOKEN:"${REGISTRATION_TOKEN}"GITEA_RUNNER_NAME:"${RUNNER_NAME}"GITEA_RUNNER_LABELS:"${RUNNER_LABELS}...
gitea-runner.yml: 代码语言:yml AI代码解释 version:"3.8"services:runner:image:gitea/act_runnerrestart:alwaysprivileged:trueenvironment:CONFIG_FILE:/config.yamlGITEA_INSTANCE_URL:"gitea访问地址"GITEA_RUNNER_REGISTRATION_TOKEN:"第二步的Token"GITEA_RUNNER_NAME:"自定义Runner的名称用于显示"GITEA_RUNNER_LABE...
创建安装目录,这里是 /data/gitea-runner ,然后进入目录创建docker-compose.yaml,内容如下: version:"3"networks:ops:services:gitea-runner:image:gitea/act_runner:0.2.11container_name:gitea-runnerenvironment:CONFIG_FILE:/config.yamlGITEA_INSTANCE_URL:"http://192.168.2.199:3000"GITEA_RUNNER_REGISTRATION_TOK...
WARN Runnerinuser-mode. INFO Enter the Gitea instance URL (forexample, https://gitea.com/): [输入服务器地址] INFO Enter the runner token: [输入 Runner 令牌] INFO Enter the runner name (ifsetempty, use hostname:ubuntu ): [输入 Runner 名称] INFO Enter the runner labels, leave blank to...
-GITEA_INSTANCE_URL=#Your Gitea Instance to register to-GITEA_RUNNER_REGISTRATION_TOKEN=#The Gitea registration token-GITEA_RUNNER_LABELS=label#The labels of your runner (comma separated)user:rootdeploy:mode:replicatedreplicas:60#<--- This is required on a different host as the gitea server, si...
首先,访问你的gitea地址获取runner_token,我的是http://192.168.0.240:8089/admin/runners 1.使用Docker部署 dockerrun-d --privileged=true\ --restart always \ -e GITEA_INSTANCE_URL=http://192.168.0.240:8089 \ -e GITEA_RUNNER_REGISTRATION_TOKEN=JyDSicrUioR1FqIkL0vLkgkYIUdJU04aZFo36u4K \ ...
url := "http://your-gitea-instance/api/v1/user/repos" payload := []byte(`{ "name": "my-repo", "description": "My new repository", "private": false }`) req, _ := http.NewRequest("POST", url, ioutil.NopCloser(bytes.NewBuffer(payload))) ...
-GITEA_INSTANCE_URL=https://git.mydomain.com-GITEA_RUNNER_NAME=local_runner-GITEA_RUNNER_REGISTRATION_TOKEN=lErnBlahBlahBlahBlahBlahBlahBlahZguN4networks:gitea_network:driver:bridge Gitea config .ini APP_NAME= mydomain Git ServerRUN_MODE= prodRUN_USER= gitWORK_PATH= /data/gitea[repository]ROOT...
Preserve users if restoring a repository on the same Gitea instance (#18604) Fix non-ASCII search on database (#18437) Automatically pause queue if index service is unavailable (#15066) TESTING Allow postgres integration tests to run over unix pipe (#19875) ...
First get agiteaobject wrapping access and authentication (via an api token) for your gitea instance: fromgiteaimport* gitea = Gitea(URL, TOKEN) Operations like requesting the Gitea version or authentication user can be requested directly from thegiteaobject: ...