Skip to content

Commit

Permalink
ci(digest): Add digest pinning (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
merkata authored Oct 20, 2023
1 parent b2fee50 commit 521f84b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,30 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
],
"regexManagers": [
{
"fileMatch": ["(^|/)rockcraft.yaml$"],
"description": "Update base image references",
"matchStringsStrategy": "any",
"matchStrings": ["# renovate: build-base:\\s+(?<depName>[^:]*):(?<currentValue>[^\\s@]*)(@(?<currentDigest>sha256:[0-9a-f]*))?",
"# renovate: base:\\s+(?<depName>[^:]*):(?<currentValue>[^\\s@]*)(@(?<currentDigest>sha256:[0-9a-f]*))?"],
"datasourceTemplate": "docker",
"versioningTemplate": "ubuntu"
}
],
"packageRules": [
{
"enabled": true,
"matchDatasources": [
"docker"
],
"pinDigests": true
},
{
"matchFiles": ["rockcraft.yaml"],
"matchUpdateTypes": ["major", "minor", "patch"],
"enabled": false
}
]
}

0 comments on commit 521f84b

Please sign in to comment.