chore: add Docker cleanup steps to workflows
This commit is contained in:
parent
0927116a2c
commit
ef65c5bbf6
2 changed files with 14 additions and 0 deletions
7
.github/workflows/container-scan.yml
vendored
7
.github/workflows/container-scan.yml
vendored
|
@ -41,3 +41,10 @@ jobs:
|
||||||
uses: forgejo/upload-artifact@v4
|
uses: forgejo/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: trivy-report.json
|
path: trivy-report.json
|
||||||
|
|
||||||
|
- name: Clean up Docker
|
||||||
|
run: |
|
||||||
|
docker system prune -af
|
||||||
|
docker volume prune -f
|
||||||
|
docker network prune -f
|
||||||
|
docker builder prune -af
|
||||||
|
|
7
.github/workflows/docker-build.yml
vendored
7
.github/workflows/docker-build.yml
vendored
|
@ -68,3 +68,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: git.dominikstahl.dev/${{ env.REPO }}:${{ steps.get-ref.outputs.tag }}
|
tags: git.dominikstahl.dev/${{ env.REPO }}:${{ steps.get-ref.outputs.tag }}
|
||||||
|
|
||||||
|
- name: Clean up Docker
|
||||||
|
run: |
|
||||||
|
docker system prune -af
|
||||||
|
docker volume prune -f
|
||||||
|
docker network prune -f
|
||||||
|
docker builder prune -af
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue