forked from sandialabs/sceptre-phenix-images
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 908 Bytes
/
release-cleanup.yml
File metadata and controls
31 lines (30 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# This workflow runs weekly to clean up releases and tags older than 90 days
name: release-cleanup
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Run on schedule
schedule:
- cron: '11 12 * * WED'
jobs:
release-cleanup:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- uses: wow-actions/delete-stale-releases@v1.3.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
delete_tags: true
keep_latest_days: 90
cleanup-old-images:
name: Delete Untagged Images
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: dataaxiom/ghcr-cleanup-action@v1
with:
older-than: 90 day
packages: sceptre-phenix-images/bennu.qc2,sceptre-phenix-images/ubuntu.qc2
keep-n-tagged: 5
exclude-tags: latest