From bcc6e774405bbe4a3ede1ae95463df024eb18eb1 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 9 Jul 2021 08:26:25 -0700 Subject: [PATCH] Update gitea to 1.14.4 This makes a number of changes and in depth testing is probably warranted. * Bump the golang version to 1.16 to match upstream's dockerfile golang version. * Bump the nodejs version to latest stable which is v16.x and consume it from the buster repo since our image is based on buster. * Bump the gitea version to 1.14.4. * Rename all of the opendev-.*.png logo files to logo-.*.png as the names of these files are no longer customizable. The reason for this is the user settable json manifest has been removed. * We keep opendev-sm.png because Gerrit apparently loads this? * Update html templates to be in line with 1.14.4's templates. * Use the gitea `admin user create` command instead of `admin create-user`. While I can't find removal or deprecation notices for the previous command the current docs note you should use the new version and the old one is failing in CI. Change-Id: I0a05ebb963cca5be88aeb2f859bfbeefa0f9c8e0 --- docker/gitea/Dockerfile | 6 +- .../img/{opendev-192.png => logo-192.png} | Bin .../img/{opendev-512.png => logo-512.png} | Bin .../img/{opendev-lg.png => logo-lg.png} | Bin docker/gitea/custom/public/img/logo-sm.png | Bin 0 -> 7509 bytes docker/gitea/custom/public/img/logo.svg | 49 ++++++++ .../custom/templates/base/head_navbar.tmpl | 56 ++++++++-- docker/gitea/custom/templates/home.tmpl | 2 +- .../custom/templates/pwa/manifest_json.tmpl | 31 ------ .../gitea/custom/templates/repo/header.tmpl | 105 ++++++++++++------ playbooks/roles/gitea/tasks/main.yaml | 2 +- 11 files changed, 171 insertions(+), 80 deletions(-) rename docker/gitea/custom/public/img/{opendev-192.png => logo-192.png} (100%) rename docker/gitea/custom/public/img/{opendev-512.png => logo-512.png} (100%) rename docker/gitea/custom/public/img/{opendev-lg.png => logo-lg.png} (100%) create mode 100644 docker/gitea/custom/public/img/logo-sm.png create mode 100644 docker/gitea/custom/public/img/logo.svg delete mode 100644 docker/gitea/custom/templates/pwa/manifest_json.tmpl diff --git a/docker/gitea/Dockerfile b/docker/gitea/Dockerfile index 29af91a3f7..50e8e4eedf 100644 --- a/docker/gitea/Dockerfile +++ b/docker/gitea/Dockerfile @@ -22,17 +22,17 @@ ################################### #Build stage -FROM docker.io/library/golang:1.15-buster AS build-env +FROM docker.io/library/golang:1.16-buster AS build-env LABEL maintainer="infra-root@openstack.org" -ARG GITEA_VERSION="v1.13.7" +ARG GITEA_VERSION="v1.14.4" ENV TAGS "bindata $TAGS" #Build deps RUN apt-get update && apt-get -y install build-essential git apt-transport-https curl gnupg2 \ && curl -sS https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \ - && echo "deb https://deb.nodesource.com/node_10.x bionic main" | tee /etc/apt/sources.list.d/nodesource.list \ + && echo "deb https://deb.nodesource.com/node_16.x buster main" | tee /etc/apt/sources.list.d/nodesource.list \ && apt-get update \ && apt-get -q --option "Dpkg::Options::=--force-confold" --assume-yes install nodejs \ && mkdir -p ${GOPATH}/src/code.gitea.io/gitea diff --git a/docker/gitea/custom/public/img/opendev-192.png b/docker/gitea/custom/public/img/logo-192.png similarity index 100% rename from docker/gitea/custom/public/img/opendev-192.png rename to docker/gitea/custom/public/img/logo-192.png diff --git a/docker/gitea/custom/public/img/opendev-512.png b/docker/gitea/custom/public/img/logo-512.png similarity index 100% rename from docker/gitea/custom/public/img/opendev-512.png rename to docker/gitea/custom/public/img/logo-512.png diff --git a/docker/gitea/custom/public/img/opendev-lg.png b/docker/gitea/custom/public/img/logo-lg.png similarity index 100% rename from docker/gitea/custom/public/img/opendev-lg.png rename to docker/gitea/custom/public/img/logo-lg.png diff --git a/docker/gitea/custom/public/img/logo-sm.png b/docker/gitea/custom/public/img/logo-sm.png new file mode 100644 index 0000000000000000000000000000000000000000..789b7c90736b4af9a5807704617bb9de58976a49 GIT binary patch literal 7509 zcmV-b9jfAqP)Z|I1)v3h^y+_cAkcv!4gf$< z1qM5SDgY(b|Na1D2N^{nWvsBw!56eUw#ZgbzmjT@`W`^IFo2jk=60rp-5?QMPk?R! zS_7aecO?Nh!GPTa*vKStLweDNzpLCwt#eT*_*}a?n`kuJkpR1afDB+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7ne#E2YLS_yN`%YKz76_>+2>HmVqCo{Gw zN7TVjdho)~A&{mDWN-E&ovJdu;H-wTC+XMmK z(vIYL88v+N70$p+#_S;g`7+#gF;s&QLPn()EM677s!Ui}X44Auza}7Wgg>qrD)CA< z$^{}wBb?Iw_@e-}hTASi)a*!2)ISw&qp%fBHf<7^B;El(;Vv<1h2tXO$6WA~42Osk zfu|RJc#7lbKn8fHwuzxO#S-XEjSAjB9lWYH5odZ&KCtKz1BRn!5|i@CrZg0FhrOt{V&ULkw|}URItQv&Xh<{<-R0OG7jY*V4~O$1lxnx zj#154k??)hRxVHr3I^nTa%!^^*D~N4_(|{*0|3AnVRKRw_18zb&kaVc9~u-Ja|UrB zOBkZRzV;HM7+|?+h53SPF`Jgey&?~`M6Zk!ObF!OogAwic1g%UCb>!!Ghf` zLbgI;ucQ{`e@WygxL&At1z*5q%;^tcCV*k}J(eihDgm=(8-4xLU=)0TV&nLplt>f6 za2o*sfl3Vv6Bs_B99fuhaIvb_ct=ZvQ}6{?$7#A!lno}7W;3vn@O495{UQ=zBS7-4 zX5F&prxyfuhpZ18tb#qMFy5Kr1V0)eHxXbEfZ9(e>6>yw*gA=kH5!VQ!J-Np0vCmX zJz+g2X-ws|t3X*_0@@#tt^i0|sBg3p0d~APYwH$BbX!`>V?UEkn;OvFb-}sl6zmJu zahk4_uQW0yWf2A=lXHEwB(jr!I)He{k(3wCsw)8qkll?+n0&R+DFPHSMhXZo6{I>- f4tZv)xmfvs#sRk#l4R}n00000NkvXXu0mjfAN@H~ literal 0 HcmV?d00001 diff --git a/docker/gitea/custom/public/img/logo.svg b/docker/gitea/custom/public/img/logo.svg new file mode 100644 index 0000000000..213491a130 --- /dev/null +++ b/docker/gitea/custom/public/img/logo.svg @@ -0,0 +1,49 @@ + +image/svg+xml \ No newline at end of file diff --git a/docker/gitea/custom/templates/base/head_navbar.tmpl b/docker/gitea/custom/templates/base/head_navbar.tmpl index 485da790f1..ea5870f9b1 100644 --- a/docker/gitea/custom/templates/base/head_navbar.tmpl +++ b/docker/gitea/custom/templates/base/head_navbar.tmpl @@ -1,7 +1,7 @@