Browse Source

Merge "Add cron to gc on gitea servers"

changes/83/661383/1
Zuul 9 months ago
parent
commit
1330ed82c8
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      playbooks/roles/gitea/tasks/main.yaml

+ 8
- 0
playbooks/roles/gitea/tasks/main.yaml View File

@@ -126,3 +126,11 @@
key: "{{ gitea_gerrit_public_key }}"
read_only: false
title: "Gerrit replication key"
- name: Set up cron job to pack git refs
cron:
name: pack-git-refs
state: present
job: "docker exec -t giteadocker_gitea-web_1 find /data/git/repositories/ -maxdepth 2 -name *.git -type d -execdir git --git-dir={} gc \\;"
minute: 37
hour: 12
weekday: 0

Loading…
Cancel
Save