From 688e959b8af2b00401f1ba63829905b98d02cc38 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Thu, 9 Jan 2025 09:01:15 -0800 Subject: [PATCH] Update to Gitea 1.23 This updates our gitea image builds to Gitea 1.23. There are a number of breaking changes (noted below) and the full changelog can be seen here: https://github.com/go-gitea/gitea/blob/v1.23.1/CHANGELOG.md * BREAKING * Rename config option [camo].Allways to [camo].Always (#32097) * This config section is not in our app.ini. * Remove SHA1 for support for ssh rsa signing (#31857) * We don't require the use of ssh rsa signing so shouldn't impact us. * Use UTC as default timezone when schedule Actions cron tasks (#31742) * We don't use Actions so this shouldn't affect us. * Delete Actions logs older than 1 year by default (#31735) * We don't use Actions so this shouldn't affect us. * Make OIDC introspection authentication strictly require Client ID and secret (#31632) * We don't use OIDC so this shouldn't affect us. Separately I believe that a fix for the memory leak we have observed did land in 1.23. We do update to golang 1.23 to match upstream, and have edited our overridden template to match as well. Finally, we switch the mariadb image over to our opendevmirror'd image on quay.io. This is a good opportunity to make the switch as it avoids unnecessary extra downtime/upgrades. Change-Id: Ie613160477d2236a27dc047131ba003cb396b84b --- docker/gitea/Dockerfile | 4 ++-- .../gitea/custom/templates/base/head_navbar.tmpl | 14 +++++++------- docker/gitea/custom/templates/repo/header.tmpl | 14 +++++++------- .../roles/gitea/templates/docker-compose.yaml.j2 | 2 +- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/docker/gitea/Dockerfile b/docker/gitea/Dockerfile index 7fc6b28120..3d2c7423f5 100644 --- a/docker/gitea/Dockerfile +++ b/docker/gitea/Dockerfile @@ -25,14 +25,14 @@ ################################### # Build stage -FROM docker.io/library/golang:1.22-bookworm AS build-env +FROM docker.io/library/golang:1.23-bookworm AS build-env LABEL maintainer="infra-root@openstack.org" ARG GOPROXY ENV GOPROXY ${GOPROXY:-direct} -ARG GITEA_VERSION="v1.22.6" +ARG GITEA_VERSION="v1.23.1" ENV TAGS "bindata timetzdata $TAGS" # Build deps diff --git a/docker/gitea/custom/templates/base/head_navbar.tmpl b/docker/gitea/custom/templates/base/head_navbar.tmpl index 5162356e5f..4b77a979e1 100644 --- a/docker/gitea/custom/templates/base/head_navbar.tmpl +++ b/docker/gitea/custom/templates/base/head_navbar.tmpl @@ -11,7 +11,7 @@ -