[
    {
        "name": "delete_untagged",
        "action": {
            "type": "Delete"
        },
        "condition": {
            "tagState": "untagged"
        }
    },
    {
        "name": "delete_dev",
        "action": {
            "type": "Delete"
        },
        "condition": {
            "tagState": "tagged",
            "tagPrefixes": [
                "dev-"
            ],
            "olderThan": "3d"
        }
    },
    {
        "name": "delete_test_pr",
        "action": {
            "type": "Delete"
        },
        "condition": {
            "tagState": "tagged",
            "tagPrefixes": [
                "test-pr-"
            ],
            "olderThan": "3d"
        }
    },
    {
        "name": "delete_test_deploy",
        "action": {
            "type": "Delete"
        },
        "condition": {
            "tagState": "tagged",
            "tagPrefixes": [
                "test-deploy-"
            ],
            "olderThan": "3d"
        }
    },
    {
        "name": "delete_pr_cache",
        "action": {
            "type": "Delete"
        },
        "condition": {
            "tagState": "tagged",
            "tagPrefixes": [
                "cache-pr-"
            ],
            "olderThan": "7d"
        }
    },
    {
        "name": "delete_cache",
        "action": {
            "type": "Delete"
        },
        "condition": {
            "tagState": "tagged",
            "tagPrefixes": [
                "cache-"
            ],
            "olderThan": "30d"
        }
    },
    {
        "name": "keep_third_party",
        "action": {
            "type": "Keep"
        },
        "condition": {
            "tagState": "any",
            "packageNamePrefixes": [
                "alpine",
                "debian",
                "envoyproxy/envoy",
                "ghost",
                "google/cloud-sdk",
                "grafana/grafana",
                "jupyter/scipy-notebook",
                "moby/buildkit",
                "python",
                "redis",
                "ubuntu"
            ]
        }
    },
    {
        "name": "keep_most_recent_deploy",
        "action": {
            "type": "Keep"
        },
        "mostRecentVersions": {
            "packageNamePrefixes": [
                "admin-pod",
                "auth",
                "base",
                "batch",
                "batch-worker",
                "ci",
                "ci-hello",
                "ci-utils",
                "create_certs_image",
                "git-make-bash",
                "gpu",
                "hail-buildkit",
                "hail-dev",
                "hail-run",
                "hail-ubuntu",
                "hail-ubuntu-py-3-10",
                "hail-ubuntu-python-3-10",
                "hail-ubuntu-python-3-12",
                "hail-ubuntu-python-3-13",
                "hailgenetics/hail",
                "hailgenetics/hailtop",
                "hailgenetics/vep-grch37-85",
                "hailgenetics/vep-grch38-95",
                "linting",
                "monitoring",
                "netcat",
                "test-ci-utils",
                "test_hello_create_certs_image",
                "volume",
                "website",
                "workdir"
            ],
            "keepCount": 10
        }
    }
]
