Github Release Page: https://gitea.com/gitea/act_runner/releases
v0.2.11: https://gitea.com/gitea/act_runner/releases/download/v0.2.11/act_runner-0.2.11-windows-amd64.exe
Invoke-WebRequest https://gitea.com/gitea/act_runner/releases/download/v0.2.11/act_runner-0.2.11-windows-amd64.exe -OutFile act_runner.exe
$instance="<Gitea instance URL>"
$token="<Runner token>"
$labels="<Runner labels>"
$name="<Runner name>"
.\act_runner.exe register --no-interactive --instance $instance --token $token --labels $labels --name $name
Github Release Page: https://github.com/winsw/winsw/releases
v2.12.0: https://github.com/winsw/winsw/releases/download/v2.12.0/WinSW-x64.exe
Invoke-WebRequest https://github.com/winsw/winsw/releases/download/v2.12.0/WinSW-x64.exe -OutFile winsw.exe
建立配置檔,且檔案名稱需要跟 WinSW 一樣,如 winsw.xml
<service> <id>gitea_runner</id> <name>Gitea Runner</name> <description>This service runs Gitea Runner.</description> <executable>act_runner.exe</executable> <arguments>daemon</arguments> </service>
安裝並啟動服務
.\winsw.exe install
.\winsw.exe start
Deleting the wiki page "Service:Gitea Runner" cannot be undone. Continue?