Skip to content

Commit

Permalink
Add action to clean packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Planlos5000 committed Jan 7, 2025
1 parent 032fe3b commit 85edaa0
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/clean_packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
name: Remove old unused scrumlr packages

on:
push:
branches:
- fs/clean_packages
# schedule:
# - cron: "30 10 * * 1" # TODO: enable cronjob if it works

jobs:
clean_scrumlr_server_packages:
name: "clean scrumlr server packages"
runs-on: ubuntu-latest
steps:
- uses: smartsquaregmbh/delete-old-packages@v0.8.1
with:
organization: "inovex"
names: "scrumlr.io/scrumlr-server"
type: "container"
keep: 50
dry-run: "true"

clean_scrumlr_frontend_packages:
name: "clean scrumlr frontend packages"
runs-on: ubuntu-latest
steps:
- uses: smartsquaregmbh/delete-old-packages@v0.8.1
with:
organization: "inovex"
names: "scrumlr.io/scrumlr-frontend"
type: "container"
keep: 256
dry-run: "true"

# clean_scrumlr_server_packages:
# name: "clean scrumlr server packages"
# runs-on: ubuntu-latest
# steps:
# - uses: actions/delete-package-versions@v5
# with:
# package-name: "scrumlr.io/scrumlr-server"
# package-type: "container"
# min-versions-to-keep: 256
# delete-only-untagged-versions: "true"

# clean_scrumlr_frontend_packages:
# name: "clean scrumlr frontend packages"
# runs-on: ubuntu-latest
# steps:
# - uses: actions/delete-package-versions@v5
# with:
# package-name: "scrumlr.io/scrumlr-frontend"
# package-type: "container"
# min-versions-to-keep: 256
# delete-only-untagged-versions: "true"

0 comments on commit 85edaa0

Please sign in to comment.