Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renovate preset #81

Merged
merged 4 commits into from
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,36 @@ docker volume create -d lebokus/bindfs -o sourcePath=$PWD -o map=$(id -u)/0:@$(i
docker run -it --user root -v dmcvolume:/root/ dmc:latest
```

## Included renovate preset

We provide a [renovate-preset](https://docs.renovatebot.com/key-concepts/presets/) to include in your configuration.
If you use it renovate can update the versions in your `build.yaml`

Include it like this:
```
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
"github>T-Systems-MMS/docker-management-container"
],
}
```

Change your `build.yaml` like this to use it:

```
packages:
# renovate: datasource=repology depName=ubuntu_22_04/ansible versioning=loose
- ansible=2.10.7+merged+base+2.10.8+dfsg-1

ansible:
collections:
# renovate: datasource=galaxy-collection depName=t_systems_mms.acme
- t_systems_mms.acme=2.3.1
```


## Migration

With Version 2.0.0 there's a breaking change in the configuration and usage of the DMC.
Expand Down
12 changes: 12 additions & 0 deletions default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"regexManagers": [
{
"description": "Update versions in DMC build.yaml",
"fileMatch": ["(^|/)build\\.yaml$"],
"matchStrings": [
"#\\s*renovate:\\s*datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s.*?=(?<currentValue>.*)\\s"
],
"versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}"
}
]
}