添加 CI 自动部署 workflow + CMS IP 配置
All checks were successful
Build and Deploy / build-deploy (push) Successful in 46s
All checks were successful
Build and Deploy / build-deploy (push) Successful in 46s
This commit is contained in:
20
deploy/act_runner-config.yaml
Normal file
20
deploy/act_runner-config.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
# act_runner 配置(host 模式,2G 内存服务器友好)
|
||||
log:
|
||||
level: info
|
||||
|
||||
runner:
|
||||
capacity: 1 # 同时只跑 1 个任务,省内存
|
||||
timeout: 10m
|
||||
fetch_timeout: 5s
|
||||
fetch_interval: 2s
|
||||
|
||||
cache:
|
||||
enabled: true
|
||||
|
||||
container:
|
||||
# host 模式不使用容器;以下保留默认
|
||||
network: ""
|
||||
privileged: false
|
||||
|
||||
host:
|
||||
workdir_parent: /var/lib/act_runner/work
|
||||
13
deploy/act_runner.service
Normal file
13
deploy/act_runner.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Gitea Actions Runner
|
||||
After=network.target gitea.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/act_runner daemon --config /etc/act_runner/config.yaml
|
||||
WorkingDirectory=/var/lib/act_runner
|
||||
Environment=HOME=/root
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user