Hello Harald Welte,

I'd like you to reexamine a change.  Please visit

    https://gerrit.osmocom.org/7716

to look at the new patch set (#3).

ansible: docker: cleanup old docker images

Fixes: OS#3144
Change-Id: I77fe38775b3f6055691bbf654de4019916b75fd7
---
M ansible/roles/docker/tasks/main.yml
1 file changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/16/7716/3

diff --git a/ansible/roles/docker/tasks/main.yml 
b/ansible/roles/docker/tasks/main.yml
index 1603175..0a58a2c 100644
--- a/ansible/roles/docker/tasks/main.yml
+++ b/ansible/roles/docker/tasks/main.yml
@@ -26,3 +26,11 @@
     name: "{{ jenkins_user }}"
     groups: docker
     append: yes
+
+- name: cleanup old docker images
+  cron:
+    name: cleanup-docker-images
+    minute: 0
+    hour: '*/3'
+    user: "{{ jenkins_user }}"
+    job: "test -x /home/{{ jenkins_user }}/osmo-ci/scripts/docker-cleanup.sh 
&& /home/{{ jenkins_user }}/osmo-ci/scripts/docker-cleanup.sh >/dev/null"

-- 
To view, visit https://gerrit.osmocom.org/7716
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I77fe38775b3f6055691bbf654de4019916b75fd7
Gerrit-PatchSet: 3
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Owner: lynxis lazus <lyn...@fe80.eu>
Gerrit-Reviewer: Harald Welte <lafo...@gnumonks.org>

Reply via email to