Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rochet2/renovate-node-lts-docker
PoC on renovate creating PR for only LTS versions of node for dockerfiles
https://github.com/rochet2/renovate-node-lts-docker
docker lts node renovate
Last synced: about 1 month ago
JSON representation
PoC on renovate creating PR for only LTS versions of node for dockerfiles
- Host: GitHub
- URL: https://github.com/rochet2/renovate-node-lts-docker
- Owner: Rochet2
- License: mit
- Created: 2023-10-31T20:09:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-23T08:06:14.000Z (about 1 year ago)
- Last Synced: 2023-11-23T09:23:33.767Z (about 1 year ago)
- Topics: docker, lts, node, renovate
- Language: Dockerfile
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# renovate-node-lts-docker
It appears that adding the following package rule to `renovate.json` makes Dockerfile node image follow LTS versions of node even if there is no explicit mention of it.
Without this, the node version is updated to latest version instead of LTS.Additionally, renovate does not support docker image suffixes yet. See [this](https://github.com/renovatebot/renovate/issues/13270).
To support image names like `node:18.0-alpine`, we use `versionCompatibility` to define how the version with suffix should be parsed.
The `versionCompatibility` is not necessarily needed if the image version does not use any suffix.```json
"packageRules": [
{
"matchDatasources": ["docker"],
"matchPackageNames": ["node"],
"versionCompatibility": "^(?[^-]+)(?-.*)?$",
"versioning": "node"
}
]
```