Skip to content

Commit

Permalink
ci: renovate workflow and config update
Browse files Browse the repository at this point in the history
  • Loading branch information
karelvanhecke committed Nov 7, 2024
1 parent ccd7a4b commit 0a194f9
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 11 deletions.
29 changes: 29 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:best-practices"],
"repositories": ["karelvanhecke/libvirt-operator"],
"requireConfig": "ignored",
"onboarding": false,
"platformCommit": "enabled",
"postUpdateOptions": [
"gomodTidy"
],
"customManagers":[
{
"customType": "regex",
"fileMatch": "^\\.github/workflows/(?:ci|renovate)\\.yaml$",
"depNameTemplate": "ghcr.io/renovatebot/renovate",
"datasourceTemplate": "docker",
"matchStrings": [
"(?:renovate|RENOVATE)[_-](?:version|VERSION): (?<currentValue>[0-9.]+)(?<currentDigest>@sha256:[a-f0-9]+)?"
]
}
],
"packageRules": [
{
"matchDepNames": "ghcr.io/renovatebot/renovate",
"matchUpdateTypes": ["minor","patch"],
"automerge": true
}
]
}
19 changes: 19 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
- '**/*.go'
manifests:
- 'install/base/**/*.yaml'
renovate:
- .github/renovate.json
golangci-lint:
name: golangci-lint
Expand Down Expand Up @@ -110,3 +112,20 @@ jobs:

- name: Deploy to kind cluster
run: make deploy-to-kind-cluster

renovate-validate:
name: Validate Renovate config
runs-on: ubuntu-latest
needs: changes
if: needs.changes.outputs.renovate == 'true'
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Validate config
env:
RENOVATE_VERSION: 39.7.3
run: >
docker run --rm -v ./.github/renovate.json:/renovate.json
--entrypoint renovate-config-validator
ghcr.io/renovatebot/renovate:${RENOVATE_VERSION} /renovate.json
4 changes: 2 additions & 2 deletions .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ jobs:
- name: Run Renovate
uses: renovatebot/github-action@28bcd5c4900a4353b5c9af9e1bd61dd6377f0f0d # v40.3.5
with:
configurationFile: .github/renovate.json
renovate-version: 39.7.3
token: '${{ steps.app-token.outputs.token }}'
env:
RENOVATE_REPOSITORIES: ${{ github.repository }}
9 changes: 0 additions & 9 deletions renovate.json

This file was deleted.

0 comments on commit 0a194f9

Please sign in to comment.