Skip to content
Snippets Groups Projects
Verified Commit 09293b4a authored by David Mehren's avatar David Mehren
Browse files

Add daily registry cleanup

parent 0cb87f75
No related branches found
No related tags found
No related merge requests found
[Unit]
Description=Clean the GitLab Registry
[Service]
Type=simple
ExecStart=/usr/bin/gitlab-ctl registry-garbage-collect -m
[Unit]
Description=Clean the GitLab Registry daily
[Timer]
OnCalendar=daily
Persistent=true
[Install]
WantedBy=timers.target
......@@ -124,3 +124,15 @@
- pg_dump
- psql
when: gitlab_external_postgres
- name: Copy registry cleanup service
copy:
src: "{{item}}"
dest: "/etc/systemd/system/"
with_fileglob: "gitlab_registry_cleanup.*"
- name: Enable registry cleanup timer
systemd:
name: gitlab_registry_cleanup.timer
state: enabled
daemon-reload: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment