Skip to content

Commit

Permalink
Merge pull request #30 from JohnStrunk/fix-pin
Browse files Browse the repository at this point in the history
Enable native devcontainer updates via renovate
  • Loading branch information
mergify[bot] authored Apr 26, 2024
2 parents 070363e + acefab2 commit a17261a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 36 deletions.
3 changes: 0 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
{
"name": "Python",
"image": "mcr.microsoft.com/devcontainers/python:3.12-bookworm",

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2.10.2": {},
"ghcr.io/devcontainers/features/github-cli:1.0.11": {},
Expand Down
36 changes: 3 additions & 33 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -12,50 +12,20 @@
":pinDevDependencies" // Pin dev dependencies also
],
// Files to ignore
// "ignorePaths": [
// "docs/requirements.txt"
// ],
"ignorePaths": [
".venv"
],
"labels": [
"dependencies"
],
"lockFileMaintenance": {"enabled": true},
"packageRules": [
{
"description": "Update devcontainer images in a single PR",
"groupName": "devcontainer",
"matchFileNames": [".devcontainer/devcontainer.json"]
},
{
"description": "Update renovatebot/pre-commit-hooks weekly to decrease noise",
"matchPackageNames": ["renovatebot/pre-commit-hooks"],
"schedule": ["before 9am on monday"]
}
],
"customManagers": [
{
"customType": "regex",
"description": "devcontainer base image",
"fileMatch": [
"^.devcontainer/devcontainer.json$"
],
"matchStrings": [
"\"image\"\\s*:\\s*\"(?<depName>.*?):(?<currentValue>.*?)(@(?<currentDigest>sha256:[a-f0-9]+))?\""
],
"datasourceTemplate": "docker"
},
{
"customType": "regex",
"description": "devcontainer feature images",
"fileMatch": [
"^.devcontainer/devcontainer.json$"
],
"matchStrings": [
// devcontainer features don't support sha256 digests
"\"(?<depName>.*?):(?<currentValue>.*?)\"\\s*:\\s*"
],
"datasourceTemplate": "docker"
}
],
// "schedule": [
// "before 7am on Tuesday" // Update weekly
// ],
Expand Down

0 comments on commit a17261a

Please sign in to comment.