Skip to content

Commit

Permalink
Have renovate detect examples/*/Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Dec 20, 2024
1 parent 828ed47 commit e1a51fd
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lint-test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
- '**/*.md'
- 'ci/**'
- '.github/workflows/delete.yml'
- 'renovate.json5'
tags:
- '*'
branches:
Expand Down
20 changes: 20 additions & 0 deletions ci/k8s/delete.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash

# use sed to find/replace placeholders for nginx-ingress

set -eou pipefail

TARGET="ingress.yaml"
if [ $# -eq 1 ]; then
if [ ! -f "$1" ]; then
echo "$1 doesn't exit"
exit 1
fi

TARGET="$1"
fi

sed -e "s|__DOMAIN__|$DOMAIN|" \
-e "s|__KUBE_TLS_SECRET__|$KUBE_TLS_SECRET|" \
"$@" \
| kubectl delete -f -
15 changes: 13 additions & 2 deletions renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@
extends: [
'config:best-practices',
':rebaseStalePrs',
'customManagers:dockerfileVersions',
],
dockerfile: {
fileMatch: [".*Dockerfile$"],
},
customManagers: [
{
customType: "regex",
fileMatch: [".*Dockerfile$"],
matchStrings: [
"# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?(?: registryUrl=(?<registryUrl>[^\\s]+?))?\\s(?:ENV|ARG)\\s+[A-Za-z0-9_]+?_VERSION[ =][\"']?(?<currentValue>.+?)[\"']?\\s"
]
}
],
packageRules: [
{
Expand Down Expand Up @@ -64,4 +75,4 @@
vulnerabilityAlerts: {
enabled: true,
},
}
}

0 comments on commit e1a51fd

Please sign in to comment.