Skip to content

Commit

Permalink
ci: configure renovate (authelia#1643)
Browse files Browse the repository at this point in the history
* Add renovate.json

* Update renovate configuration

* Fix labelling

Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Amir Zarrinkafsh <[email protected]>
  • Loading branch information
3 people authored Jan 30, 2021
1 parent 4109497 commit da5892f
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ steps:
if: build.branch != "master"

- 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).
- block: "Public fork needs approval"
Expand All @@ -32,7 +32,7 @@ steps:
- label: ":rocket: Setup Deployment"
command: ".buildkite/deployment.sh | buildkite-agent pipeline upload"
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.
- label: ":rocket: Setup Deployment"
Expand Down
4 changes: 4 additions & 0 deletions .github/probot.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on('pull_request.opened')
context =>
context.payload.pull_request.head.ref.slice(0, 11) !== 'dependabot/'
)
.filter(
context =>
context.payload.pull_request.head.ref.slice(0, 9) !== 'renovate/'
)
.comment(`## Artifacts
These changes are published for testing on Buildkite and DockerHub.
Expand Down
58 changes: 58 additions & 0 deletions .renovaterc
Original file line number Diff line number Diff line change
@@ -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"
]
}
]
}

0 comments on commit da5892f

Please sign in to comment.