Compare commits

...

26 Commits

Author SHA1 Message Date
ea7e26698a feat: enable indexer for search [ci skip]
Some checks failed
continuous-integration/drone/pr Build is failing
See coop-cloud/organising#589
2024-03-31 01:31:39 +01:00
3wc
a0e8ba4839 chore: publish 2.5.2+1.21.5-rootless release
All checks were successful
continuous-integration/drone/push Build is passing
2024-02-08 14:36:08 -03:00
3wc
ca9d0b4a6c chore: publish 2.5.1+1.21.4-rootless release
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-17 17:56:28 -03:00
9d44d9e61c add [repository.upload] support to the configuration
All checks were successful
continuous-integration/drone/push Build is passing
Note: Requires updates to config file so add this to the release notes.
2023-12-07 18:01:05 -08:00
464c890afb Add LANDING_PAGE support for configuration 2023-12-07 17:47:53 -08:00
c8ea2ddf0c chore: publish 2.5.0+1.21.1-rootless release
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-27 13:10:23 +01:00
3wc
b0ce473627 chore: publish 2.4.0+1.21.0-rootless release
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-20 12:43:42 +00:00
3wc
73970dd79c chore: publish 2.3.3+1.20.5-rootless release
All checks were successful
continuous-integration/drone/push Build is passing
2023-10-30 12:43:03 +00:00
3wc
9153c4db2a chore: publish 2.3.2+1.20.3-rootless release
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-28 14:08:11 +02:00
3wc
b95eae3b57 chore: publish 2.3.1+1.20.1-rootless release
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-25 12:53:45 +01:00
3wc
d18379a364 Bump APP_INI_VERSION 2023-07-25 12:52:59 +01:00
3wc
46bb242fe7 chore: publish 2.3.0+1.20.1-rootless release
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-25 12:50:30 +01:00
f9249f1284 chore: publish 2.2.0+1.19.3-rootless release
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-06 17:31:14 +02:00
9fe02cb19f reduce logging verbosity 2023-06-06 16:19:52 +02:00
1e612d84a2 Merge pull request 'Updated images for MariaDB/Gitea and Postgres to latest stable or LTS' (#31) from javielico/gitea:master into master
All checks were successful
continuous-integration/drone/tag Build is passing
Reviewed-on: #31
2023-05-18 10:36:25 +00:00
77dd223f94 Added commit message warning about Pgsql upgrade 2023-05-09 20:31:17 +01:00
d5577a0f75 Mariadb to stable lts 10.11.2 2023-05-08 21:03:09 +01:00
8f5587099d Postgres up to 15.2 2023-05-08 21:01:16 +01:00
d56a1474fe Gitea up to latest stable 1.19.3 2023-05-08 20:58:58 +01:00
dc3f54d5ea Merge pull request 'master' (#1) from coop-cloud/gitea:master into master
Reviewed-on: javielico/gitea#1
2023-05-08 19:47:16 +00:00
8b466acf66 chore: publish 2.1.0+1.18.5-rootless release 2023-03-15 13:18:39 -07:00
3wc
9cf26a0154 Switch to thecoopcloud/stack-ssh-deploy 2023-01-20 23:31:14 -08:00
3wc
a04fe41c1b Specify mariadb for tests 2023-01-20 22:38:13 -08:00
3wc
63118ecbd8 Fix CI by adding networks: [mass update] 2023-01-20 22:32:13 -08:00
3wc
cd0fff667a Automatically generate catalogue on release [mass update]
Re: coop-cloud/recipes-catalogue-json#4
2023-01-20 22:32:13 -08:00
9413c79e8f chore: publish 2.0.1+1.18.2-rootless release 2023-01-20 11:00:24 +01:00
9 changed files with 57 additions and 14 deletions

View File

@ -3,14 +3,17 @@ kind: pipeline
name: deploy to swarm-test.autonomic.zone
steps:
- name: deployment
image: decentral1se/stack-ssh-deploy:latest
image: thecoopcloud/stack-ssh-deploy:latest
settings:
host: swarm-test.autonomic.zone
stack: gitea
networks:
- proxy
generate_secrets: true
purge: true
deploy_key:
from_secret: drone_ssh_swarm_test
compose: "compose.yml:compose.mariadb.yml"
environment:
APP_INI_VERSION: v1
DOCKER_SETUP_SH_VERSION: v1
@ -37,11 +40,17 @@ trigger:
- master
---
kind: pipeline
name: recipe release
name: generate recipe catalogue
steps:
- name: release a new version
image: thecoopcloud/drone-abra:latest
image: plugins/downstream
settings:
command: recipe gitea release
deploy_key:
from_secret: abra_bot_deploy_key
server: https://build.coopcloud.tech
token:
from_secret: drone_abra-bot_token
fork: true
repositories:
- coop-cloud/auto-recipes-catalogue-json
trigger:
event: tag

View File

@ -19,6 +19,12 @@ GITEA_ENABLE_OPENID_SIGNIN=true
GITEA_ENABLE_OPENID_SIGNUP=true
GITEA_DISABLE_GRAVATAR=false
GITEA_ENABLE_FEDERATED_AVATAR=true
GITEA_LANDING_PAGE=organizations
GITEA_REPO_UPLOAD_ENABLED=true
GITEA_REPO_UPLOAD_ALLOWED_TYPES=*/*
GITEA_REPO_UPLOAD_MAX_SIZE=50
GITEA_REPO_UPLOAD_MAX_FILES=5
GITEA_MAILER_FROM=noreply@example.com
GITEA_MAILER_USER=noreply@example.com
@ -45,3 +51,7 @@ SECRET_SECRET_KEY_VERSION=v1 # length=64
# GITEA_UPDATE_AVATAR=replace-me
# GITEA_ACCOUNT_LINKING=replace-me
# GITEA_OAUTH2_CLIENT_ENABLED=replace-me
# Indexer (for issue search)
# GITEA_REPO_INDEXER_ENABLED=false
# GITEA_STARTUP_TIMEOUT=-1

View File

@ -1,4 +1,4 @@
export APP_INI_VERSION=v9
export APP_INI_VERSION=v16
export DOCKER_SETUP_SH_VERSION=v1
abra_backup_app() {

View File

@ -24,12 +24,20 @@ ENABLE_OPENID_SIGNUP = {{ env "GITEA_ENABLE_OPENID_SIGNUP" }}
[repository]
DEFAULT_BRANCH = main
[repository.upload]
ENABLED = {{ env "GITEA_REPO_UPLOAD_ENABLED" }}
ALLOWED_TYPES = {{ env "GITEA_REPO_UPLOAD_ALLOWED_TYPES" }}
FILE_MAX_SIZE = {{ env "GITEA_REPO_UPLOAD_MAX_SIZE" }}
MAX_FILES = {{ env "GITEA_REPO_UPLOAD_MAX_FILES" }}
[indexer]
STARTUP_TIMEOUT = 0
REPO_INDEXER_ENABLED = {{ or (env "GITEA_REPO_INDEXER_ENABLED") "false" }}
STARTUP_TIMEOUT = {{ or (env "GITEA_STARTUP_TIMEOUT") "-1" }}
[server]
DOMAIN = {{ env "GITEA_DOMAIN" }}
LANDING_PAGE = organizations
LANDING_PAGE = {{ env "GITEA_LANDING_PAGE" }}
ROOT_URL = https://%(DOMAIN)s/
SSH_DOMAIN = {{ env "GITEA_DOMAIN" }}
SSH_LISTEN_PORT = {{ env "GITEA_SSH_PORT" }}
@ -71,3 +79,10 @@ ENABLED = true
FILE_EXTENSIONS = .rst
RENDER_COMMAND = rst2html
IS_INPUT_FILE = false
[log]
MODE=console
LEVEL=WARN
STACKTRACE_LEVEL=None
ENABLE_ACCESS_LOG=false
ENABLE_XORM_LOG=false

View File

@ -2,4 +2,4 @@ version: '3.8'
services:
app:
image: codeberg.org/forgejo/forgejo:1.18.0-1-rootless
image: codeberg.org/forgejo/forgejo:1.19.3-0-rootless

View File

@ -8,7 +8,7 @@ services:
- GITEA_DB_NAME=gitea
- GITEA_DB_USER=gitea
db:
image: "mariadb:10.9"
image: "mariadb:10.11.2"
command: |
mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:

View File

@ -8,7 +8,7 @@ services:
- GITEA_DB_NAME=gitea
- GITEA_DB_USER=gitea
db:
image: postgres:9.6
image: postgres:15.5
environment:
- POSTGRES_DB=gitea
- POSTGRES_USER=gitea

View File

@ -3,7 +3,7 @@ version: "3.8"
services:
app:
image: "gitea/gitea:1.18.0-rootless"
image: "gitea/gitea:1.21.5-rootless"
configs:
- source: app_ini
target: /etc/gitea/app.ini
@ -35,6 +35,13 @@ services:
- GITEA_ACCOUNT_LINKING
- GITEA_OAUTH2_CLIENT_ENABLED
- GITEA_CORS_ALLOW_DOMAIN
- GITEA_LANDING_PAGE
- GITEA_REPO_UPLOAD_ENABLED
- GITEA_REPO_UPLOAD_ALLOWED_TYPES
- GITEA_REPO_UPLOAD_MAX_SIZE
- GITEA_REPO_UPLOAD_MAX_FILES
- GITEA_REPO_INDEXER_ENABLED
- GITEA_STARTUP_TIMEOUT
volumes:
- data:/var/lib/gitea
- config:/etc/gitea
@ -61,7 +68,7 @@ services:
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolalloworiginlist=https://${GITEA_CORS_ALLOW_DOMAIN}"
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolmaxage=100"
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.addvaryheader=true"
- coop-cloud.${STACK_NAME}.version=2.0.0+1.18.0-rootless
- coop-cloud.${STACK_NAME}.version=2.5.2+1.21.5-rootless
networks:

View File

@ -0,0 +1,2 @@
Beware that you'll also be updating Postgres if you're running it. Usually with major updates it might involve pg_dumpall / pg_restore either side of the upgrade because the server app doesn't know how to upgrade data storage formats, won't launch if it detects an old data format, a pg_upgrade command is available. More info on https://git.coopcloud.tech/coop-cloud/gitea/pulls/31