Skip to content

Commit

Permalink
ci(housekeeping): clean old container resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Borja Aranda committed Jun 15, 2022
1 parent 8fa5a19 commit a293bed
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-and-push-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ jobs:
with:
fetch-depth: 0

- name: Housekeeping clean old podman resources
continue-on-error: true
id: housekeeping
run: |
DATE=$(date --date="21 days ago" + "%Y-%m-%d")
podman rm --force $(podman ps -a -q --filter until=$DATE)
podman rmi --force $(podman images -a -q --filter until=${DATE})
- name: Login to Quay
env:
QUAY_USER: ${{ secrets.QUAY_ROBOT_USER }}
Expand Down

0 comments on commit a293bed

Please sign in to comment.