Compare commits
	
		
			35 Commits
		
	
	
		
			2.0.0+1.18
			...
			2.6.2+1.21
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| ced3ea7978 | |||
| 43abfe0483 | |||
| 4683a81eeb | |||
| 
						
						
							
						
						ea7e26698a
	
				 | 
					
					
						|||
| 3815417c2c | |||
| 4421f81a35 | |||
| a0e8ba4839 | |||
| ca9d0b4a6c | |||
| 9d44d9e61c | |||
| 464c890afb | |||
| c8ea2ddf0c | |||
| b0ce473627 | |||
| 73970dd79c | |||
| 9153c4db2a | |||
| b95eae3b57 | |||
| d18379a364 | |||
| 46bb242fe7 | |||
| f9249f1284 | |||
| 9fe02cb19f | |||
| 1e612d84a2 | |||
| 77dd223f94 | |||
| d5577a0f75 | |||
| 8f5587099d | |||
| d56a1474fe | |||
| dc3f54d5ea | |||
| 8b466acf66 | |||
| 9cf26a0154 | |||
| a04fe41c1b | |||
| 63118ecbd8 | |||
| cd0fff667a | |||
| 9413c79e8f | |||
| 7d7761dec6 | |||
| 936fb940cb | |||
| e2cd36873c | |||
| 89400089ec | 
							
								
								
									
										21
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								.drone.yml
									
									
									
									
									
								
							@ -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
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										14
									
								
								.env.sample
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								.env.sample
									
									
									
									
									
								
							@ -6,6 +6,9 @@ COMPOSE_FILE="compose.yml"
 | 
			
		||||
COMPOSE_FILE="$COMPOSE_FILE:compose.mariadb.yml"
 | 
			
		||||
# COMPOSE_FILE="$COMPOSE_FILE:compose.postgres.yml"
 | 
			
		||||
 | 
			
		||||
# Enable to use forgejo instead of gitea
 | 
			
		||||
# COMPOSE_FILE="$COMPOSE_FILE:compose.forgejo.yml"
 | 
			
		||||
 | 
			
		||||
GITEA_DOMAIN=git.example.com
 | 
			
		||||
GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION=true
 | 
			
		||||
GITEA_APP_NAME="Git with solidaritea"
 | 
			
		||||
@ -16,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
 | 
			
		||||
@ -42,3 +51,8 @@ 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_ISSUE_INDEXER_TYPE=db
 | 
			
		||||
# GITEA_STARTUP_TIMEOUT=-1
 | 
			
		||||
 | 
			
		||||
@ -4,11 +4,11 @@
 | 
			
		||||
 | 
			
		||||
<!-- metadata -->
 | 
			
		||||
* **Category**: Development
 | 
			
		||||
* **Status**: 3, stable
 | 
			
		||||
* **Status**: 5
 | 
			
		||||
* **Image**: [`gitea/gitea`](https://hub.docker.com/gitea/gitea), 4, upstream
 | 
			
		||||
* **Healthcheck**: Yes
 | 
			
		||||
* **Backups**: Yes
 | 
			
		||||
* **Email**: ?
 | 
			
		||||
* **Email**: Yes
 | 
			
		||||
* **Tests**: 2
 | 
			
		||||
* **SSO**: 3 (OAuth)
 | 
			
		||||
<!-- endmetadata -->
 | 
			
		||||
@ -19,9 +19,9 @@
 | 
			
		||||
2. Deploy [`coop-cloud/traefik`][cc-traefik]
 | 
			
		||||
3. `abra app new gitea --secrets` (optionally with `--pass` if you'd like
 | 
			
		||||
   to save secrets in `pass`)
 | 
			
		||||
4. `abra app YOURAPPDOMAIN config` - be sure to change `$DOMAIN` to something that resolves to
 | 
			
		||||
4. `abra app config YOURAPPDOMAIN` - be sure to change `$DOMAIN` to something that resolves to
 | 
			
		||||
   your Docker swarm box
 | 
			
		||||
5. `abra app YOURAPPDOMAIN deploy`
 | 
			
		||||
5. `abra app deploy YOURAPPDOMAIN`
 | 
			
		||||
 | 
			
		||||
## Create first user
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								abra.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								abra.sh
									
									
									
									
									
								
							@ -1,4 +1,4 @@
 | 
			
		||||
export APP_INI_VERSION=v9
 | 
			
		||||
export APP_INI_VERSION=v17
 | 
			
		||||
export DOCKER_SETUP_SH_VERSION=v1
 | 
			
		||||
 | 
			
		||||
abra_backup_app() {
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										20
									
								
								app.ini.tmpl
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								app.ini.tmpl
									
									
									
									
									
								
							@ -24,12 +24,21 @@ 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" }}
 | 
			
		||||
ISSUE_INDEXER_TYPE= {{ or (env "GITEA_ISSUE_INDEXER_TYPE") "db" }}
 | 
			
		||||
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 +80,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
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										5
									
								
								compose.forgejo.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								compose.forgejo.yml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,5 @@
 | 
			
		||||
version: '3.8'
 | 
			
		||||
 | 
			
		||||
services:
 | 
			
		||||
  app:
 | 
			
		||||
    image: codeberg.org/forgejo/forgejo:1.19.3-0-rootless
 | 
			
		||||
@ -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:
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										18
									
								
								compose.yml
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								compose.yml
									
									
									
									
									
								
							@ -3,7 +3,7 @@ version: "3.8"
 | 
			
		||||
 | 
			
		||||
services:
 | 
			
		||||
  app:
 | 
			
		||||
    image: "gitea/gitea:1.18.0-rootless"
 | 
			
		||||
    image: "gitea/gitea:1.21.10-rootless"
 | 
			
		||||
    configs:
 | 
			
		||||
      - source: app_ini
 | 
			
		||||
        target: /etc/gitea/app.ini
 | 
			
		||||
@ -35,6 +35,14 @@ 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_ISSUE_INDEXER_TYPE
 | 
			
		||||
      - GITEA_STARTUP_TIMEOUT
 | 
			
		||||
    volumes:
 | 
			
		||||
      - data:/var/lib/gitea
 | 
			
		||||
      - config:/etc/gitea
 | 
			
		||||
@ -43,6 +51,12 @@ services:
 | 
			
		||||
    networks:
 | 
			
		||||
      - proxy
 | 
			
		||||
      - internal
 | 
			
		||||
    healthcheck:
 | 
			
		||||
      test: ["CMD", "curl", "-f", "http://localhost:3000/api/healthz"]
 | 
			
		||||
      interval: 30s
 | 
			
		||||
      timeout: 10s
 | 
			
		||||
      retries: 10
 | 
			
		||||
      start_period: 1m
 | 
			
		||||
    deploy:
 | 
			
		||||
      update_config:
 | 
			
		||||
        failure_action: rollback
 | 
			
		||||
@ -61,7 +75,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.6.2+1.21.10-rootless
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
networks:
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								release/2.1.2+1.19.3-rootless
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								release/2.1.2+1.19.3-rootless
									
									
									
									
									
										Normal 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
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										1
									
								
								release/2.6.0+1.21.5-rootless
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								release/2.6.0+1.21.5-rootless
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
This release adds a docker healthcheck for the main Gitea service -- please pay careful attention when updating apps, and as always feel free to ask in Matrix if you run into any bugs 🐛
 | 
			
		||||
		Reference in New Issue
	
	Block a user