add prune
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Torma Kristóf 2023-08-30 23:35:26 +02:00
parent 692d388003
commit b2dd062e6f
3 changed files with 15 additions and 0 deletions

View File

@ -15,5 +15,6 @@ steps:
commands:
- echo "$SSH_KEY" > $PWD/id_rsa
- chmod 0600 $PWD/id_rsa
- ansible-galaxy collection install -r requirements.yaml
- ansible-playbook -i inventory.yaml nightly.yaml
...

6
requirements.yaml Normal file
View File

@ -0,0 +1,6 @@
---
collections:
- ansible.posix
- community.general
- community.docker.docker_prune
...

View File

@ -13,4 +13,12 @@
command: docker-compose up -d
args:
chdir: /home/service-user
- name: Prune everything
community.docker.docker_prune:
containers: true
images: true
networks: true
volumes: true
builder_cache: true
...