Feat/renovate custom chainguard matcher pt2 (#190260)

## Summary

Drops a comment for the current chaingaurd reference incase it is
implemented in a tech that requires endings other than `.ts`, and then
creates a PR grouping for the chainguard images.
This commit is contained in:
Isaac Karrer 2024-08-09 13:22:35 -05:00 committed by GitHub
parent 5fcf7e0b57
commit 60c5eca33e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View file

@ -20,6 +20,12 @@
"matchDepPatterns": [".*"],
"enabled": false
},
{
"matchPackageNames": [
"docker.elastic.co/wolfi/chainguard-base"
],
"enabled": true
},
{
"groupName": "GitHub actions",
"matchManagers": ["github-actions"],

View file

@ -42,6 +42,12 @@ export async function runDockerGenerator(
let baseImageName = '';
if (flags.baseImage === 'ubuntu') baseImageName = 'ubuntu:20.04';
if (flags.baseImage === 'ubi') baseImageName = 'docker.elastic.co/ubi9/ubi-minimal:latest';
/**
* Renovate config contains a regex manager to automatically updates this Chainguard reference
*
* If this logic moves to another file or under another name, then the Renovate regex manager
* for automatic Chainguard updates will break.
*/
if (flags.baseImage === 'wolfi')
baseImageName =
'docker.elastic.co/wolfi/chainguard-base:latest@sha256:082266206be6e559baea1c8b2eeb4fb86ea1318a0cf99cbf0e612dd2c611e80b';