Skip to content

Commit

Permalink
Try to clean non latest only docker imgs
Browse files Browse the repository at this point in the history
  • Loading branch information
vedran-kasalica committed Sep 2, 2024
1 parent e055cec commit 67cc9c9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/clean-containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ jobs:
REGISTRY: ghcr.io

steps:
- name: Set REPO environment variable
run: echo "REPO=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV

- name: Delete 'PR' containers older than a week
uses: snok/[email protected]
with:
account: sanctuuary
image-names: "!latest"
image-names: "!empty"
token: ${{ secrets.GH_REPO_TOKEN }}
image-tags: "!latest"
cut-off: 2w 3d
dry-run: true

0 comments on commit 67cc9c9

Please sign in to comment.