-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c20030e
commit 80a4ab1
Showing
1 changed file
with
2 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
name: "Clean the old docker images" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: # Manual trigger | ||
schedule: | ||
- cron: "21 21 * * *" # Scheduled run | ||
|
@@ -25,10 +22,9 @@ jobs: | |
uses: snok/[email protected] | ||
with: | ||
account: user | ||
image-names: ${{ env.REGISTRY }}/${{ env.REPO }} | ||
image-names: "!latest" | ||
token: ${{ secrets.GH_REPO_TOKEN }} | ||
image-tags: "pr*" # target any image that has a tag starting with the word test or dev | ||
# image-tags: "!latest" | ||
image-tags: "!latest" | ||
cut-off: 2w 3d | ||
dry-run: true | ||
|