Update Gitea to 1.26.4, Gitea Runner to 2.0.0

Two avatar configs were moved to the admin settings.
This commit is contained in:
Greg Karekinian
2026-07-01 14:19:58 +02:00
parent c167c1861f
commit 7810f9f373
5 changed files with 14 additions and 18 deletions
@@ -1,10 +1,10 @@
#
# Cookbook:: kosmos_gitea
# Recipe:: act_runner
# Recipe:: runner
#
version = node["gitea"]["act_runner"]["version"]
download_url = "https://dl.gitea.com/act_runner/#{version}/act_runner-#{version}-linux-amd64"
version = node["gitea"]["runner"]["version"]
download_url = "https://dl.gitea.com/gitea-runner/#{version}/gitea-runner-#{version}-linux-amd64"
working_directory = node["gitea"]["working_directory"]
gitea_credentials = data_bag_item("credentials", "gitea")
runners = gitea_credentials["runners"]
@@ -25,9 +25,9 @@ end
package apt_pkg
end
remote_file "/usr/local/bin/act_runner" do
remote_file "/usr/local/bin/gitea_runner" do
source download_url
checksum node["gitea"]["act_runner"]["checksum"]
checksum node["gitea"]["runner"]["checksum"]
mode "0750"
end
@@ -46,7 +46,7 @@ runners.each do |runner|
bash "register_#{runner["org"]}_runner" do
cwd runner_dir
code <<-EOF
act_runner register \
gitea_runner register \
--no-interactive \
--instance #{gitea_host} \
--name #{runner_name} \
@@ -59,7 +59,7 @@ act_runner register \
content({
Unit: {
Description: "Gitea Actions Runner for '#{runner["org"]}' org",
Documentation: ["https://gitea.com/gitea/act_runner"],
Documentation: ["https://gitea.com/gitea/runner"],
Requires: "gitea.service",
After: "syslog.target network.target"
},
@@ -67,7 +67,7 @@ act_runner register \
Type: "simple",
WorkingDirectory: runner_dir,
Environment: "HOME=/root",
ExecStart: "/usr/local/bin/act_runner daemon",
ExecStart: "/usr/local/bin/gitea_runner daemon",
ExecStartPre: "/bin/sleep 3", # Wait for Gitea's API to be up when restarting at the same time
Restart: "always",
},