Skip to content

Commit

Permalink
Add a package cleanup CI workflow to prevent packages from accumulati…
Browse files Browse the repository at this point in the history
…ng (#11)
  • Loading branch information
christopherwharrop-noaa authored Nov 1, 2024
1 parent 7634b99 commit 79fdc24
Showing 1 changed file with 88 additions and 0 deletions.
88 changes: 88 additions & 0 deletions .github/workflows/package-cleanup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: PackageCleanup

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
cleanup-packages:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
-
name: Remove untagged versions of dockerslurmcluster/slurm-frontend
uses: actions/delete-package-versions@v5
with:
package-name: 'dockerslurmcluster/slurm-frontend'
package-type: 'container'
min-versions-to-keep: 0
delete-only-untagged-versions: 'true'
-
name: Remove untagged versions of dockerslurmcluster/slurm-master
uses: actions/delete-package-versions@v5
with:
package-name: 'dockerslurmcluster/slurm-master'
package-type: 'container'
min-versions-to-keep: 0
delete-only-untagged-versions: 'true'
-
name: Remove untagged versions of dockerslurmcluster/slurm-node
uses: actions/delete-package-versions@v5
with:
package-name: 'dockerslurmcluster/slurm-node'
package-type: 'container'
min-versions-to-keep: 0
delete-only-untagged-versions: 'true'
-
name: Remove untagged versions of dockerslurmcluster/frontend-cache-amd64
uses: actions/delete-package-versions@v5
with:
package-name: 'dockerslurmcluster/frontend-cache-amd64'
package-type: 'container'
min-versions-to-keep: 0
delete-only-untagged-versions: 'true'
-
name: Remove untagged versions of dockerslurmcluster/frontend-cache-arm64
uses: actions/delete-package-versions@v5
with:
package-name: 'dockerslurmcluster/frontend-cache-arm64'
package-type: 'container'
min-versions-to-keep: 0
delete-only-untagged-versions: 'true'
-
name: Remove untagged versions of dockerslurmcluster/master-cache-amd64
uses: actions/delete-package-versions@v5
with:
package-name: 'dockerslurmcluster/master-cache-amd64'
package-type: 'container'
min-versions-to-keep: 0
delete-only-untagged-versions: 'true'
-
name: Remove untagged versions of dockerslurmcluster/master-cache-arm64
uses: actions/delete-package-versions@v5
with:
package-name: 'dockerslurmcluster/master-cache-arm64'
package-type: 'container'
min-versions-to-keep: 0
delete-only-untagged-versions: 'true'
-
name: Remove untagged versions of dockerslurmcluster/node-cache-amd64
uses: actions/delete-package-versions@v5
with:
package-name: 'dockerslurmcluster/node-cache-amd64'
package-type: 'container'
min-versions-to-keep: 0
delete-only-untagged-versions: 'true'
-
name: Remove untagged versions of dockerslurmcluster/node-cache-arm64
uses: actions/delete-package-versions@v5
with:
package-name: 'dockerslurmcluster/node-cache-arm64'
package-type: 'container'
min-versions-to-keep: 0
delete-only-untagged-versions: 'true'

0 comments on commit 79fdc24

Please sign in to comment.