Skip to content

Commit 9f9d432

Browse files
committed
Add job for cleaning up old development images
Signed-off-by: Samuel Monson <[email protected]>
1 parent 4bb780f commit 9f9d432

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/container-maintenance.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@ on:
66
workflow_dispatch: # Enables manual triggering of the workflow
77

88
jobs:
9+
cleanup-container-tags:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Delete PR and untagged images older than 2 weeks
13+
uses: snok/[email protected]
14+
with:
15+
account: ${{ github.actor }}
16+
token: ${{ github.token }}
17+
image-names: ${{ github.event.repository.name }}
18+
image-tags: "pr-*"
19+
cut-off: 2w
20+
dry-run: true
21+
922
push-container-tags:
1023
runs-on: ubuntu-latest
1124
steps:

0 commit comments

Comments
 (0)