-
Notifications
You must be signed in to change notification settings - Fork 79
36 lines (36 loc) · 1.15 KB
/
clean-packages.yaml
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
32
33
34
35
36
name: Clean packages
on:
workflow_dispatch:
inputs:
dry-run:
required: true
description: 'dry-run'
default: true
jobs:
build:
name: Delete old none release containers
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: milaboratory/github-ci/actions/housekeeping/action-ghcr-prune@v4-beta
with:
token: ${{ secrets.GITHUB_TOKEN }}
organization: milaboratory
container: 'mixcr/mixcr'
dry-run: ${{ github.event.inputs.dry-run }}
keep-last: 10
prune-tags-regexes: |
^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)-(0|[1-9]\d*)-(?!develop).*$
prune-untagged: true
- uses: milaboratory/github-ci/actions/housekeeping/action-ghcr-prune@v4-beta
with:
token: ${{ secrets.GITHUB_TOKEN }}
organization: milaboratory
container: 'mixcr/mixcr'
dry-run: ${{ github.event.inputs.dry-run }}
keep-last: 100
keep-tags: |
latest-develop
prune-tags-regexes: |
^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)-(0|[1-9]\d*)-develop$