Skip to main content

Split the list of packages

You can split the list of packages.

e.g.

Directory structure

aqua.yaml
aqua/
conftest.yaml

aqua.yaml

registries:
- type: standard
ref: v4.155.1 # renovate: depName=aquaproj/aqua-registry

packages:
- import: aqua/*.yaml

aqua/conftest.yaml

packages:
- name: open-policy-agent/conftest@v0.28.2

This is useful for CI. You can execute test and lint only when the specific package is updated.

e.g. GitHub Actions' on.<push|pull_request>.paths

name: conftest
on:
pull_request:
paths:
- policy/**.rego
- aqua/conftest.yaml

💡 Renovate Config Preset​

To update split files by Renovate, please use the preset aquaproj/aqua-renovate-config:file

e.g.

{
"extends": [
"github>aquaproj/aqua-renovate-config:file#2.2.1(aqua/conftest\\.yaml)"
]
}

You can also use the regular expression.

{
"extends": [
"github>aquaproj/aqua-renovate-config:file#2.2.1(aqua/.*\\.ya?ml)"
]
}