Commit df34d3f1 authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Merge branch 'add-gitlab-cleanup-tasks' into 'master'

Add some recommended GitLab cleanup tasks (fixes #110)

Closes #110

See merge request !123
parents 674ffe68 2219a85d
Pipeline #2510 passed with stage
in 46 seconds
# We're only running a subset of all available cleanup tasks mentioned on
# For instance, we're not using LFS so we'e also not cleaning it up. Also,
# some cleanup tasks have timing implications so take great care when adding
# something here!
Description=GitLab Cleanup
ExecStart=/usr/bin/docker exec -t gitlab gitlab-ctl registry-garbage-collect --delete-manifests --delete-untagged
ExecStart=/usr/bin/docker exec -t gitlab gitlab-rake gitlab:cleanup:project_uploads DRY_RUN=false
ExecStart=/usr/bin/docker exec -t gitlab gitlab-rake gitlab:cleanup:orphan_job_artifact_files DRY_RUN=false DEBUG=1 LIMIT=1000
Description=GitLab Cleanup
......@@ -102,3 +102,12 @@
when: configure_firewall
- firewall
- name: copy gitlab-cleanup timer and service
copy: src={{ item }} dest=/etc/systemd/system/{{ item }} owner=root group=root mode=0644
- gitlab-cleanup.timer
- gitlab-cleanup.service
- name: activate systemd timers for gitlab-cleanup
systemd: name=gitlab-cleanup.timer enabled=yes state=started daemon-reload=yes
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment