Skip to content

Commit

Permalink
feat(digests): Enable digest pinning (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
merkata authored Oct 17, 2023
1 parent 28bd5d0 commit d8e51bf
Show file tree
Hide file tree
Showing 2 changed files with 27 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": "docker"
}
],
"packageRules": [
{
"enabled": true,
"matchDatasources": [
"docker"
],
"pinDigests": true
},
{
"matchFiles": ["rockcraft.yaml"],
"matchUpdateTypes": ["major", "minor", "patch"],
"enabled": false
}
]
}
2 changes: 2 additions & 0 deletions synapse_rock/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ summary: Synapse rock
description: Synapse OCI image for the Synapse charm
version: "1.0"
base: ubuntu:22.04
# renovate: base: ubuntu:22.04@sha256:deadbeefcec90b11d2869e00fe1f2380c21cbfcd799ee35df8bd7ac09e6f63ea
build-base: ubuntu:22.04
# renovate: build-base: ubuntu:22.04@sha256:deadbeefcec90b11d2869e00fe1f2380c21cbfcd799ee35df8bd7ac09e6f63ea
license: Apache-2.0
platforms:
amd64:
Expand Down

0 comments on commit d8e51bf

Please sign in to comment.