Skip to content

Commit

Permalink
feat: add cron-renovate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
timtorChen committed Feb 1, 2024
1 parent 4646cd9 commit c61519b
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/cron-renovate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: cron-renovate
"on":
push:
branches:
- "main"
schedule:
- cron: "0 16 * * *" # every 08:00 UTC+8
jobs:
renovate:
runs-on: ubuntu-latest
steps:
- name: Renovate
uses: renovatebot/[email protected]
env:
LOG_LEVEL: debug
RENOVATE_REPOSITORIES: timtorChen/homelab
RENOVATE_PLATFORM: github
RENOVATE_USERNAME: timtor-bot
RENOVATE_GIT_AUTHOR: Timtor-bot <[email protected]>
RENOVATE_TOKEN: ${{ secrets.BOT_USER_TOKEN }}
RENOVATE_GIT_PRIVATE_KEY: ${{ secrets.BOT_USER_GPG_KEY }}
2 changes: 1 addition & 1 deletion amethyst/kubernetes/wego/wego.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
sourceRef:
kind: HelmRepository
name: wego
# renovate: registryUrl=oci://ghcr.io/weaveworks/charts/weave-gitops
# renovate: packageName=ghcr.io/weaveworks/charts/weave-gitops
chart: weave-gitops
version: 4.0.32
interval: 1h
Expand Down
30 changes: 30 additions & 0 deletions renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
// configurations
// https://docs.renovatebot.com/configuration-options
"extends": ["config:recommended"],
"timezone": "Asia/Taipei",
"dependencyDashboard": true,
"commitMessagePrefix": "chore({{{replace '(.*?)\\/.*' '$1' packageFileDir }}}):",
"kubernetes": {
"fileMatch": [".*\\.yaml$"]
},
"customManagers": [
{
// HelmRelease
"fileMatch": [".*\\.yaml$"],
"datasourceTemplate": "helm",
"matchStrings": [
"# renovate: registryUrl=(?<registryUrl>.*?)\n *chart: (?<depName>.*?)\n *version: (?<currentValue>.*?)\n"
]
},
{
// OCI based HelmRelease
"fileMatch": [".*\\.yaml$"],
"datasourceTemplate": "docker",
"matchStrings": [
"# renovate: packageName=(?<packageName>.*?)\n *chart: (?<depName>.*?)\n *version: (?<currentValue>.*?)\n"
]
}
]
}

0 comments on commit c61519b

Please sign in to comment.