forked from runatlantis/atlantis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
105 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
FROM ghcr.io/runatlantis/atlantis:latest | ||
COPY atlantis /usr/local/bin/atlantis | ||
# TODO: remove this once we get this in the base image | ||
# renovate: datasource=github-releases depName=open-policy-agent/conftest | ||
ENV DEFAULT_CONFTEST_VERSION=0.35.0 | ||
|
||
WORKDIR /atlantis/src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
extends: [ | ||
"config:base", | ||
], | ||
includeForks: true, | ||
renovateFork: true, | ||
automerge: false, | ||
platformAutomerge: false, | ||
labels: ["dependencies"], | ||
postUpdateOptions: ["gomodTidy", "yarnDedupeHighest"], | ||
prHourlyLimit: 0, | ||
prConcurrentLimit: 0, | ||
packageRules: [ | ||
// e2e test depends on testing/Dockefile testing-image which has conftest specific version. | ||
// to upgrade conftest versions, we need following PRs. | ||
// 1. update testing/Dockerfile conftest version | ||
// 2. update testing-image tag | ||
// 3. update e2e conftest version | ||
// this settings allow to create only testing/Dockefile contest version update PR which uses branch prefix. | ||
{ | ||
matchPaths: ["testing/**"], | ||
matchPackagePatterns: ["conftest"], | ||
additionalBranchPrefix: "{{baseDir}}-", | ||
groupName: "conftest-testing", | ||
prBodyNotes: [ | ||
":warning: You need to upgrade testing-image conftest firstly, then upgrade other conftest versions for e2e :warning:", | ||
], | ||
}, | ||
{ | ||
ignorePaths: ["testing/**"], | ||
matchPackagePatterns: ["conftest"], | ||
groupName: "conftest-upgrade", | ||
prBodyNotes: [ | ||
":warning: You need to upgrade testing-image conftest firstly, then upgrade other conftest versions for e2e :warning:", | ||
], | ||
}, | ||
{ | ||
// terraform-switcher use release branch, not default branch | ||
// to support it, disable gomod manager and update by regex manager | ||
matchManagers: ["gomod"], | ||
matchPackageNames: ["github.com/warrensbox/terraform-switcher"], | ||
enabled: false | ||
}, | ||
], | ||
// https://docs.renovatebot.com/modules/manager/regex/ | ||
regexManagers: [ | ||
{ | ||
fileMatch: ["(^|/)Dockerfile$", "(^|/)Dockerfile\\.[^/]*$"], | ||
matchStrings: [ | ||
// example: | ||
// renovate: datasource=github-releases depName=hashicorp/terraform versioning=hashicorp | ||
// ENV DEFAULT_TERRAFORM_VERSION=x.x.x | ||
"renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\sENV .*?_VERSION=(?<currentValue>.*)\\s", | ||
], | ||
versioningTemplate: "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}", | ||
extractVersionTemplate: '^v(?<version>\\d+\\.\\d+\\.\\d+)', | ||
}, | ||
{ | ||
fileMatch: [".*go$"], | ||
matchStrings: [ | ||
// example: | ||
// const ConftestVersion = "x.x.x" // renovate: datasource=github-releases depName=open-policy-agent/conftest | ||
"\\sconst .*Version = \"(?<currentValue>.*)\"\\s// renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s", | ||
], | ||
versioningTemplate: "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}", | ||
extractVersionTemplate: '^v(?<version>\\d+\\.\\d+\\.\\d+)', | ||
}, | ||
{ | ||
fileMatch: [".circleci/config.yml$"], | ||
matchStrings: [ | ||
// example: | ||
// # renovate: datasource=github-releases depName=hashicorp/terraform versioning=hashicorp | ||
// TRRAFORM_VERSION: x.x.x | ||
"renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s.*?_VERSION: (?<currentValue>.*)\\s", | ||
], | ||
versioningTemplate: "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}", | ||
extractVersionTemplate: '^v(?<version>\\d+\\.\\d+\\.\\d+)', | ||
}, | ||
{ | ||
// some go module cannot handle by gomod manager | ||
// - github.com/warrensbox/terraform-switcher use release branch, not default branch | ||
fileMatch: ["go.mod$"], | ||
matchStrings: [ | ||
// example: | ||
// # renovate: datasource=github-releases depName=hashicorp/terraform versioning=hashicorp | ||
// github.com/warrensbox/terraform-switcher vX.X.X-0.000000000-aaaaaaaaaa | ||
"renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s.*?github.com/.* (?<currentValue>.*)\\s", | ||
], | ||
versioningTemplate: "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}", | ||
}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters