cleaning root
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
32
.drone.yml
32
.drone.yml
@@ -192,35 +192,3 @@ volumes:
|
||||
- name: docker
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
|
||||
---
|
||||
# Отдельный pipeline для очистки старых образов
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: cleanup
|
||||
|
||||
trigger:
|
||||
cron:
|
||||
- cleanup
|
||||
event:
|
||||
- cron
|
||||
|
||||
steps:
|
||||
- name: cleanup-images
|
||||
image: docker:dind
|
||||
volumes:
|
||||
- name: docker
|
||||
path: /var/run/docker.sock
|
||||
commands:
|
||||
- echo "Cleaning up old Docker images..."
|
||||
- docker image prune -f --filter "until=72h"
|
||||
- docker container prune -f --filter "until=24h"
|
||||
- echo "Cleanup completed"
|
||||
|
||||
volumes:
|
||||
- name: docker
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
|
||||
depends_on:
|
||||
- quiz-bot-ci-cd
|
||||
|
||||
Reference in New Issue
Block a user