feat: initial config

This commit is contained in:
Michael Kriese 2024-11-07 13:41:41 +01:00
parent 81d1ef8308
commit 06801d72cc
No known key found for this signature in database
GPG key ID: F8D7748549A5986A
5 changed files with 54 additions and 2 deletions

View file

@ -0,0 +1,27 @@
name: build
on:
push:
jobs:
lint:
runs-on: docker
container:
image: code.forgejo.org/forgejo-contrib/renovate:38.142.7@sha256:8327ee1726142dcc504d349d84c0e7f41656867e598ea7669bb7cf23786610a2
strategy:
matrix:
file:
- default.json
- renovate.json
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
show-progress: false
- run: node bin/validator.cjs ${{ matrix.file }}
env:
LOG_LEVEL: debug
RENOVATE_PLATFORM: gitea
RENOVATE_ENDPOINT: ${{ github.server_url }}

View file

@ -1,3 +1,6 @@
# renovate-config # Renovate configurations
shared organization config for renovate This repo contains configuration files for Renovate.
The `default.json` will be detected as onboarding preset by Renovate when enabling it on a new repo.
The other files are shared presets and are used transitive by the `default.json`.

14
bin/validator.cjs Normal file
View file

@ -0,0 +1,14 @@
const { GlobalConfig } = require('/usr/local/renovate/dist/config/global');
const { setPlatformApi } = require('/usr/local/renovate/dist/modules/platform');
// set required global config
GlobalConfig.set({
platform: 'gitea',
endpoint: process.env.RENOVATE_ENDPOINT,
});
// set platform api
setPlatformApi('gitea');
// run config validator
require('/usr/local/renovate/dist/config-validator.js');

4
default.json Normal file
View file

@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["local>forgejo/renovate-config"]
}

4
renovate.json Normal file
View file

@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["local>forgejo/renovate-config//renovate.json"]
}