Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
python: custom datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
NextFire committed Feb 18, 2024
1 parent ccc2c4c commit 0ac974e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_TAG=act-latest
FROM catthehacker/ubuntu:${BASE_TAG}

# python
# renovate: datasource=docker depName=python
# renovate: datasource=custom.setup-python depName=python extractVersion=^(?<version>\d+\.\d+)\.\d+$
ARG PYTHON_VERSION=3.12
COPY python.sh .
RUN ./python.sh && rm python.sh
Expand Down
10 changes: 9 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,13 @@
"extends": [
"github>Japan7/renovate-config",
"github>Japan7/renovate-config:python"
]
],
"customDatasources": {
"setup-python": {
"defaultRegistryUrlTemplate": "https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json",
"transformTemplates": [
"{\"releases\": $map($, function($v) { { \"version\": $v.version } }) }"
]
}
}
}

0 comments on commit 0ac974e

Please sign in to comment.