ci: configure renovate (#1643)

* Add renovate.json

* Update renovate configuration

* Fix labelling

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
pull/1648/head
renovate[bot] 2021-01-30 14:28:23 +11:00 committed by GitHub
parent 4109497a85
commit da5892faad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 64 additions and 2 deletions

View File

@ -14,7 +14,7 @@ steps:
if: build.branch != "master" if: build.branch != "master"
- wait: - wait:
if: build.pull_request.repository.fork != true && build.branch !~ /^dependabot\/.*/ if: build.pull_request.repository.fork != true && build.branch !~ /^(dependabot|renovate)\/.*/
# Manual intervention by team required to deploy for forked PRs (prevent secret leakage). # Manual intervention by team required to deploy for forked PRs (prevent secret leakage).
- block: "Public fork needs approval" - block: "Public fork needs approval"
@ -32,7 +32,7 @@ steps:
- label: ":rocket: Setup Deployment" - label: ":rocket: Setup Deployment"
command: ".buildkite/deployment.sh | buildkite-agent pipeline upload" command: ".buildkite/deployment.sh | buildkite-agent pipeline upload"
depends_on: ~ depends_on: ~
if: build.branch != "master" && build.branch !~ /^dependabot\/.*/ && build.pull_request.repository.fork != true if: build.branch != "master" && build.branch !~ /^(dependabot|renovate)\/.*/ && build.pull_request.repository.fork != true
# Removed dependency optimisation for forked PRs to enforce block step. # Removed dependency optimisation for forked PRs to enforce block step.
- label: ":rocket: Setup Deployment" - label: ":rocket: Setup Deployment"

4
.github/probot.js vendored
View File

@ -8,6 +8,10 @@ on('pull_request.opened')
context => context =>
context.payload.pull_request.head.ref.slice(0, 11) !== 'dependabot/' context.payload.pull_request.head.ref.slice(0, 11) !== 'dependabot/'
) )
.filter(
context =>
context.payload.pull_request.head.ref.slice(0, 9) !== 'renovate/'
)
.comment(`## Artifacts .comment(`## Artifacts
These changes are published for testing on Buildkite and DockerHub. These changes are published for testing on Buildkite and DockerHub.

58
.renovaterc 100644
View File

@ -0,0 +1,58 @@
{
"extends": [
"config:base",
":prHourlyLimit4",
":semanticCommitTypeAll(chore)",
":separatePatchReleases"
],
"ignorePresets": [
":combinePatchMinorReleases",
"helpers:disableTypesNodeMajor",
":prHourlyLimit2",
":semanticPrefixFixDepsChoreOthers"
],
"enabledManagers": [
"bundler",
"docker-compose",
"dockerfile",
"gomod",
"npm"
],
"labels": [
"dependencies"
],
"packageRules": [
{
"datasources": [
"docker"
],
"addLabels": [
"docker"
]
},
{
"datasources": [
"go"
],
"addLabels": [
"go"
]
},
{
"datasources": [
"npm"
],
"addLabels": [
"javascript"
]
},
{
"datasources": [
"rubygems"
],
"addLabels": [
"ruby"
]
}
]
}