Merge pull request 'Update Forgejo to v1.20.1-0 (plus fixes some configuration bugs with paths)' (#53) from feature/update-forgejo-v1.20.1-0 into main

Reviewed-on: #53
This commit is contained in:
Maximilian Kratz 2023-07-27 10:21:36 +00:00
commit faef7af6ed
2 changed files with 24 additions and 1 deletions

View file

@ -32,7 +32,7 @@ migration_url: "s3-mig.forgejo.dev"
#
forgejo_ssh_port: "22"
forgejo_release: "1.19.4-0"
forgejo_release: "1.20.1-0"
#
# Swap config

View file

@ -68,3 +68,26 @@
build: false
restarted: true
remove_orphans: true
# Fixes for upgrade to Forgejo v1.20.1-0
- name: Remove old paths in config file
ansible.builtin.lineinfile:
path: /srv/docker-compose/forgejo/forgejo/gitea/conf/app.ini
state: absent
search_string: "{{ item }}"
loop:
- "gitea/gitea.db"
- "AVATAR_UPLOAD_PATH"
- "REPOSITORY_AVATAR_UPLOAD_PATH"
- "/data/gitea/attachments"
- "[lfs]"
- "/data/git/lfs"
- name: Restart docker compose stack
community.docker.docker_compose:
project_src: /srv/docker-compose/forgejo/
build: false
restarted: true
remove_orphans: true