Skip to content

Commit

Permalink
ci: configure Renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate-bot authored and cmur2 committed Apr 16, 2021
1 parent ad01f9a commit 4987ec2
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
extends: [
"config:base",
":dependencyDashboard",
":prHourlyLimitNone",
":prConcurrentLimitNone",
":label(dependency-upgrade)",
],
schedule: ["before 8am on thursday"],
branchPrefix: "renovate-",
commitMessagePrefix: "project: ",
commitMessageAction: "update",
commitMessageTopic: "{{depName}}",
commitMessageExtra: "to {{#if isSingleVersion}}v{{{newVersion}}}{{else}}{{{newValue}}}{{/if}}",
packageRules: [
// Ruby dependencies are managed by depfu
{
managers: ["bundler"],
enabled: false,
},
// Commit message formats
{
datasources: ["docker"],
commitMessagePrefix: "docker: ",
},
{
datasources: ["github-actions"],
commitMessagePrefix: "ci: ",
},
],
regexManagers: [
{
fileMatch: ["\.rb$", "^Rakefile$"],
matchStrings: [
"renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s.*_version = '(?<currentValue>.*)'\\s"
]
},
],
}
5 changes: 4 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ namespace :solargraph do
end
end

# renovate: datasource=github-tags depName=hadolint/hadolint
hadolint_version = 'v1.18.0'

desc 'Run hadolint for Dockerfile linting'
task :hadolint do
sh 'docker run --rm -i hadolint/hadolint:v1.18.0 hadolint --ignore DL3018 - < docker/Dockerfile'
sh "docker run --rm -i hadolint/hadolint:#{hadolint_version} hadolint --ignore DL3018 - < docker/Dockerfile"
end

task default: [:rubocop, :spec, 'bundle:audit', :solargraph]
Expand Down

0 comments on commit 4987ec2

Please sign in to comment.