-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: kvanzuijlen <[email protected]>
- Loading branch information
1 parent
ad97e7d
commit 09a94f3
Showing
21 changed files
with
254 additions
and
26 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
{ | ||
$schema: "https://docs.renovatebot.com/renovate-schema.json", | ||
extends: [ "config:recommended" ], | ||
ignorePaths: [ | ||
"charts/enterprise-logs-simple/", | ||
"charts/enterprise-metrics/", | ||
"charts/lgtm-distributed/", // TODO: needs some more work | ||
"charts/loki-stack/" // TODO: needs some more work | ||
], | ||
packageRules: [ | ||
{ | ||
matchFileNames: [ | ||
"charts/agent-operator/", | ||
], | ||
postUpgradeTasks: { | ||
commands: [ | ||
'.github/renovate/postupgrade.sh "charts/agent-operator/Chart.yaml"', | ||
], | ||
fileFilters: ["charts/agent-operator/**"], | ||
executionMode: "branch", | ||
}, | ||
}, | ||
{ | ||
matchFileNames: [ | ||
"charts/enterprise-logs/", | ||
], | ||
postUpgradeTasks: { | ||
commands: [ | ||
'.github/renovate/postupgrade.sh "charts/enterprise-logs/Chart.yaml"', | ||
], | ||
fileFilters: ["charts/enterprise-logs/**"], | ||
executionMode: "branch", | ||
}, | ||
}, | ||
{ | ||
matchFileNames: [ | ||
"charts/fluent-bit/", | ||
], | ||
postUpgradeTasks: { | ||
commands: [ | ||
'.github/renovate/postupgrade.sh "charts/fluent-bit/Chart.yaml"', | ||
], | ||
fileFilters: ["charts/grafana/**"], | ||
executionMode: "branch", | ||
}, | ||
}, | ||
{ | ||
matchFileNames: [ | ||
"charts/grafana/", | ||
], | ||
postUpgradeTasks: { | ||
commands: [ | ||
'.github/renovate/postupgrade.sh "charts/grafana/Chart.yaml"', | ||
], | ||
fileFilters: ["charts/grafana/**"], | ||
executionMode: "branch", | ||
}, | ||
}, | ||
{ | ||
matchFileNames: [ | ||
"charts/loki-canary/", | ||
], | ||
postUpgradeTasks: { | ||
commands: [ | ||
'.github/renovate/postupgrade.sh "charts/loki-canary/Chart.yaml"', | ||
], | ||
fileFilters: ["charts/loki-canary/**"], | ||
executionMode: "branch", | ||
}, | ||
}, | ||
{ | ||
matchFileNames: [ | ||
"charts/loki-distributed/", | ||
], | ||
postUpgradeTasks: { | ||
commands: [ | ||
'.github/renovate/postupgrade.sh "charts/loki-distributed/Chart.yaml"', | ||
], | ||
fileFilters: ["charts/loki-distributed/**"], | ||
executionMode: "branch", | ||
}, | ||
}, | ||
{ | ||
matchFileNames: [ | ||
"charts/promtail/", | ||
], | ||
postUpgradeTasks: { | ||
commands: [ | ||
'.github/renovate/postupgrade.sh "charts/promtail/Chart.yaml"', | ||
], | ||
fileFilters: ["charts/promtail/**"], | ||
executionMode: "branch", | ||
}, | ||
}, | ||
{ | ||
matchFileNames: [ | ||
"charts/rollout-operator/", | ||
], | ||
postUpgradeTasks: { | ||
commands: [ | ||
'.github/renovate/postupgrade.sh "charts/rollout-operator/Chart.yaml"', | ||
], | ||
fileFilters: ["charts/rollout-operator/**"], | ||
executionMode: "branch", | ||
}, | ||
}, | ||
{ | ||
matchFileNames: [ | ||
"charts/synthetic-monitoring-agent/", | ||
], | ||
postUpgradeTasks: { | ||
commands: [ | ||
'.github/renovate/postupgrade.sh "charts/synthetic-monitoring-agent/Chart.yaml"', | ||
], | ||
fileFilters: ["charts/synthetic-monitoring-agent/**"], | ||
executionMode: "branch", | ||
}, | ||
}, | ||
{ | ||
matchFileNames: [ | ||
"charts/tempo/", | ||
], | ||
postUpgradeTasks: { | ||
commands: [ | ||
'.github/renovate/postupgrade.sh "charts/tempo/Chart.yaml"', | ||
], | ||
fileFilters: ["charts/tempo/**"], | ||
executionMode: "branch", | ||
}, | ||
}, | ||
{ | ||
matchFileNames: [ | ||
"charts/tempo-distributed/", | ||
], | ||
postUpgradeTasks: { | ||
commands: [ | ||
'.github/renovate/postupgrade.sh "charts/tempo-distributed/Chart.yaml"', | ||
], | ||
fileFilters: ["charts/tempo-distributed/**"], | ||
executionMode: "branch", | ||
}, | ||
}, | ||
{ | ||
matchFileNames: [ | ||
"charts/tempo-vulture/", | ||
], | ||
postUpgradeTasks: { | ||
commands: [ | ||
'.github/renovate/postupgrade.sh "charts/tempo-vulture/Chart.yaml"', | ||
], | ||
fileFilters: ["charts/tempo-vulture/**"], | ||
executionMode: "branch", | ||
}, | ||
} | ||
], | ||
customManagers: [ | ||
{ | ||
customType: "regex", | ||
fileMatch: [ | ||
"(^|/)\\.github/workflows/.+\\.ya?ml$", | ||
"(^|/)\\.github/.+\\.sh$", | ||
], | ||
matchStrings: [ | ||
"# renovate: datasource=(?<datasource>[\\w-]+?) depName=(?<depName>[\\w\\/-]+?)( packageName=(?<packageName>.+?))?( extractVersion=(?<extractVersion>.+?))?\\s+?(default|\\w+_VERSION|.*version): (?<currentValue>.*)\\s", | ||
], | ||
}, | ||
{ | ||
customType: "regex", | ||
fileMatch: [ | ||
"Chart.yaml$", | ||
], | ||
matchStrings: [ | ||
"# renovate: datasource=(?<datasource>[\\w-]+?) depName=(?<depName>[\\w\\/\\.-]+?)( extractVersion=(?<extractVersion>.+?))?( versioning=(?<versioning>.+?))?\\s+?appVersion: \"?(?<currentValue>.*?)\"?\\s", | ||
], | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# renovate: datasource=github-tags depName=mikefarah/yq | ||
export YQ_VERSION=v4.40.5 | ||
|
||
# renovate: datasource=github-tags depName=jenkins-x-plugins/jx-release-version | ||
export JENKINS_JX_VERSION=v2.7.3 | ||
|
||
curl -fsSL -o /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 | ||
chmod a+x /usr/local/bin/yq | ||
|
||
curl -fsSL -o /tmp/jx-release.tar.gz https://github.com/jenkins-x-plugins/jx-release-version/releases/download/${JENKINS_JX_VERSION}/jx-release-version-linux-amd64.tar.gz | ||
mkdir -p /tmp/jx && tar -xf /tmp/jx-release.tar.gz -C /tmp/jx | ||
mv /tmp/jx/jx-release-version /usr/local/bin/jx-release-version | ||
chmod a+x /usr/local/bin/jx-release-version | ||
|
||
runuser -u ubuntu renovate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
CHARTVERSION=$(jx-release-version -previous-version=from-file:"$1") | ||
export CHARTVERSION | ||
|
||
yq eval '.version = env(CHARTVERSION)' -i "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ jobs: | |
- name: Set up Helm | ||
uses: azure/[email protected] | ||
with: | ||
# renovate: datasource=github-tags depName=helm/helm | ||
# renovate: datasource=github-tags depName=helm packageName=helm/helm | ||
version: v3.12.0 | ||
|
||
- name: Add dependency chart repos | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Renovate | ||
on: | ||
schedule: | ||
- cron: "0/15 * * * *" | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
renovate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create a GitHub App installation access token | ||
uses: tibdex/github-app-token@v2 | ||
id: app-token | ||
with: | ||
app_id: ${{ secrets.github_app_id }} | ||
private_key: ${{ secrets.github_app_pem }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Self-hosted Renovate | ||
uses: renovatebot/[email protected] | ||
with: | ||
token: "${{ steps.app-token.outputs.token }}" | ||
docker-cmd-file: .github/renovate/entrypoint.sh | ||
docker-user: root | ||
env: | ||
LOG_LEVEL: 'debug' | ||
RENOVATE_REPOSITORIES: ${{ env.GITHUB_REPOSITORY }} | ||
RENOVATE_PLATFORM: github | ||
|
||
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^\.github\/renovate-postupgrade\.sh \"charts/[\w-]+/Chart.yaml\"$"]' | ||
RENOVATE_ALLOW_POST_UPGRADE_COMMAND_TEMPLATING: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.