Merge pull request 'Update Gitea to 1.12.3' (#197) from feature/189-gitea_1.12.3 into master

Reviewed-on: #197
This commit is contained in:
Greg 2020-07-30 10:39:17 +00:00
commit 436bb8fcc1
3 changed files with 17 additions and 3 deletions

View File

@ -1,6 +1,6 @@
gitea_version = "1.11.5"
gitea_version = "1.12.3"
node.default["kosmos_gitea"]["version"] = gitea_version
node.default["kosmos_gitea"]["binary_url"] = "https://dl.gitea.io/gitea/#{gitea_version}/gitea-#{gitea_version}-linux-amd64"
node.default["kosmos_gitea"]["binary_checksum"] = "d8d43c13e71596c79b541e85e29defe065b4f70ac5155e6d0212bcfc669e1b9c"
node.default["kosmos_gitea"]["binary_checksum"] = "6bfda9a12dc248360d34954b087ca6319f7310c61dc32b34c5e0675fdd45e0f4"
node.default["kosmos_gitea"]["nginx"]["domain"] = "gitea.kosmos.org"
node.default["kosmos_gitea"]["working_directory"] = "/var/lib/gitea"

View File

@ -0,0 +1,3 @@
<style>
.ui.accordion .title:not(.ui), .ui.button, .ui.card > .content > .header.ui.card > .content > .header, .ui.category.search > .results .category > .name, .ui.form input:not([type]), .ui.form input[type="date"], .ui.form input[type="datetime-local"], .ui.form input[type="email"], .ui.form input[type="file"], .ui.form input[type="number"], .ui.form input[type="password"], .ui.form input[type="search"], .ui.form input[type="tel"], .ui.form input[type="text"], .ui.form input[type="time"], .ui.form input[type="url"], .ui.header, .ui.input > input, .ui.input input, .ui.items > .item > .content > .header, .ui.language > .menu > .item, .ui.list .list > .item .header, .ui.list > .item .header, .ui.menu, .ui.message .header, .ui.modal > .header, .ui.popup > .header, .ui.search > .results .result .title, .ui.search > .results > .message .header, .ui.statistic > .label, .ui.statistic > .value, .ui.statistics .statistic > .label, .ui.statistics .statistic > .value, .ui.steps .step .title, .ui.text.container, h1, h2, h3, h4, h5, body { font-family: apple-system,BlinkMacSystemFont,system-ui,Segoe UI,Ubuntu,Cantarell,Noto Sans,sans-serif,Helvetica,Arial,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji; }
</style>

View File

@ -56,7 +56,7 @@ directory working_directory do
mode "0750"
end
%w(custom custom/options custom/options/label).each do |path|
%w(custom custom/options custom/options/label custom/templates custom/templates/custom).each do |path|
directory "#{working_directory}/#{path}" do
owner "git"
group "git"
@ -70,6 +70,16 @@ cookbook_file "#{working_directory}/custom/options/label/Kosmos" do
owner "git"
group "git"
mode "0640"
notifies :restart, "service[gitea]", :delayed
end
# Kosmos header template
cookbook_file "#{working_directory}/custom/templates/custom/header.tmpl" do
source "custom/templates/custom/header.tmpl"
owner "git"
group "git"
mode "0640"
notifies :restart, "service[gitea]", :delayed
end
directory config_directory do
@ -112,6 +122,7 @@ remote_file gitea_binary_path do
source node['kosmos_gitea']['binary_url']
checksum node['kosmos_gitea']['binary_checksum']
mode "0755"
notifies :restart, "service[gitea]", :delayed
end
execute "systemctl daemon-reload" do