From 63ccc3a35b9ecc75ce58b91e5f3f84b3ec9c2fc8 Mon Sep 17 00:00:00 2001 From: autonomic-bot Date: Fri, 20 Nov 2026 04:19:06 +0000 Subject: [PATCH] chore: upgrade gitea to 28.4.0-rootless; seed app.ini into a writable config volume --- abra.sh | 2 +- compose.yml | 4 ++-- docker-setup.sh.tmpl | 8 ++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/abra.sh b/abra.sh index 68fe314..c412518 100644 --- a/abra.sh +++ b/abra.sh @@ -1,5 +1,5 @@ export APP_INI_VERSION=v23 -export DOCKER_SETUP_SH_VERSION=v1 +export DOCKER_SETUP_SH_VERSION=v3 export PG_BACKUP_VERSION=v1 abra_backup_app() { diff --git a/compose.yml b/compose.yml index a73ad4a..38c8591 100644 --- a/compose.yml +++ b/compose.yml @@ -3,10 +3,10 @@ version: "3.8" services: app: - image: "gitea/gitea:28.3.0-rootless" + image: "gitea/gitea:28.4.0-rootless" configs: - source: app_ini - target: /etc/gitea/app.ini + target: /etc/gitea/app.ini.init - source: docker_setup_sh target: /usr/local/bin/docker-setup.sh mode: 0555 diff --git a/docker-setup.sh.tmpl b/docker-setup.sh.tmpl index 310e8f7..af5f5c8 100644 --- a/docker-setup.sh.tmpl +++ b/docker-setup.sh.tmpl @@ -13,3 +13,11 @@ mkdir -p ${GITEA_CUSTOM} && chmod 0500 ${GITEA_CUSTOM} # Prepare temp folder mkdir -p ${GITEA_TEMP} && chmod 0700 ${GITEA_TEMP} if [ ! -w ${GITEA_TEMP} ]; then echo "${GITEA_TEMP} is not writable"; exit 1; fi + +# Gitea writes settings such as WORK_PATH back to app.ini on boot. The Swarm +# config is read-only, so seed a writable copy on the persistent config volume. +# Old direct-mount deployments may leave an empty app.ini behind. +if [ ! -s /etc/gitea/app.ini ]; then + cp /etc/gitea/app.ini.init /etc/gitea/app.ini +fi +chmod 0600 /etc/gitea/app.ini 2>/dev/null || true