Skip to content

Commit

Permalink
chore: add more automation to renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
meysam81 committed Jan 16, 2025
1 parent 32be4af commit 3b43af7
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,14 @@ jobs:
matrix:
role:
- haproxy
- k8s_oidc_github_pages
- kratos
- node_exporter
- oathkeeper
- promtail
- pushgateway
- vmagent
- vm_identity_gcp
env:
VMAGENT_REMOTE_WRITE_URL: http://localhost:9090/api/v1/write
steps:
Expand Down
4 changes: 4 additions & 0 deletions playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@
tags: kratos
- role: oathkeeper
tags: oathkeeper
- role: k8s_oidc_github_pages
tags: k8s_oidc_github_pages
- role: vm_identity_gcp
tags: vm_identity_gcp
29 changes: 29 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,35 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"customManagers": [
{
"customType": "regex",
"datasourceTemplate": "{{#if (equals datasource 'github')}}github-tags{{else}}{{{datasource}}}{{/if}}",
"fileMatch": [
"(^|/).+\\.yaml$",
"Makefile"
],
"matchStrings": [
"\\s*#\\s?renovate: (?<datasource>.*?)=(?<depName>.*?)(\\s+versioning=(?<versioning>.*?))?\\s+[\\w+\\.\\-]+(?:[:=]|\\s+\\S+)\\s*[\\\"']?(?<currentValue>[\\w+\\.\\-]*)(?:@(?<currentDigest>sha256:[a-f0-9]+))?[\\\"']?"
],
"versioningTemplate": "{{#if (equals datasource 'docker')}}docker{{else if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
}
],
"extends": [
"config:recommended"
],
"packageRules": [
{
"groupName": "GitHub Actions",
"matchManagers": [
"github-actions"
]
},
{
"automerge": true,
"matchUpdateTypes": [
"minor",
"patch"
]
}
]
}
1 change: 1 addition & 0 deletions roles/vmagent/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ vmagent_remote_write_token_file: ""
vmagent_remote_write_username: ""
vmagent_scrape_interval: 30s
vmagent_user: vmagent
# github=victoriametrics/victoriametrics
vmagent_version: 1.106.0
vmagent_vmutils_url: https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v{{ vmagent_version | regex_replace('^v', '') }}/vmutils-{{ vmagent_os }}-{{ vmagent_arch }}-v{{ vmagent_version | regex_replace('^v', '') }}.tar.gz

Check warning on line 25 in roles/vmagent/defaults/main.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

yaml[line-length]

Line too long (238 > 160 characters)

0 comments on commit 3b43af7

Please sign in to comment.