Skip to content

Commit

Permalink
Clear old operator versions (#88)
Browse files Browse the repository at this point in the history
* Clear old operator versions

* Comment-out schedule
  • Loading branch information
s-vitaliy authored May 28, 2024
1 parent 6197e46 commit c5ca98d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/cleanup-repository.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Remove old artifacts
on:
# schedule:
# - cron: '0 12 * * *' # every day at 12:00 UTC
workflow_dispatch:

jobs:
remove_old_artifacts:
name: Remove old artifacts
runs-on: ubuntu-latest

timeout-minutes: 10 # stop the task if it takes longer

steps:
- name: Delete old package versions of arcane-operator
uses: actions/[email protected]
with:
package-name: 'arcane-operator'
package-type: container
token: ${{ secrets.GITHUB_PAT }}
min-versions-to-keep: 10
delete-only-pre-release-versions: "true"

- name: Delete old package versions of helm/arcane-operator
uses: actions/[email protected]
with:
package-name: 'helm/arcane-operator'
package-type: container
token: ${{ secrets.GITHUB_PAT }}
min-versions-to-keep: 10
delete-only-pre-release-versions: "true"

0 comments on commit c5ca98d

Please sign in to comment.