Skip to content

Commit de37a4f

Browse files
committed
added filter for cleaner agent
1 parent 2c9d646 commit de37a4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cleaner/cleaner-agent.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ do
9595
echo "$0: CLEANER_AGENT: NEEED TO PURGE - purging all images created more than 3h ago"
9696
display_df
9797
lock_file
98-
docker image prune -a --force --filter "until=3h"
99-
(( CLEANER_AGENT_ACTIONS_PURGES ++ ))
98+
docker image prune -a --force --filter "until=3h" --filter "label!=io.codefresh.repo.name=images"
99+
(( CLEANER_AGENT_ACTIONS_PURGES ++ ))
100100
echo "$0: CLEANER_AGENT_ACTIONS_PURGES=$CLEANER_AGENT_ACTIONS_PURGES, updating metric file ${CLEANER_AGENT_ACTIONS_PURGES_FILE}"
101101
echo $CLEANER_AGENT_ACTIONS_PURGES > ${CLEANER_AGENT_ACTIONS_PURGES_FILE}
102102
echo "docker pull pulling codefresh/fs-ops"

0 commit comments

Comments
 (0)