summaryrefslogtreecommitdiff
path: root/.github/workflows/releasecache-cleanup.yml
blob: 572330c407a7eb208022003d1cbd86cdaedede6f (plain)
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
on:
  workflow_dispatch:
    inputs:
      manual_trigger:
        description: "Manual trigger buildcache cleanup"
        required: false
        default: ""

  schedule:
    - cron: '0 1 * * FRI'

name: Cleanup
jobs:
  releasecache-cleanup:
    name: Releasecache Cleanup
    runs-on: ubuntu-22.04
    continue-on-error: true
    timeout-minutes: 30
    steps:
      - name: Delete vaultwarden-buildcache containers
        uses: actions/delete-package-versions@e5bc658cc4c965c472efe991f8beea3981499c55 # v5.0.0
        with:
          package-name: 'vaultwarden-buildcache'
          package-type: 'container'
          min-versions-to-keep: 0
          delete-only-untagged-versions: 'false'