-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated self-hosted Renovate config in CircleCI and GHA to support pa…
…ssing variables from the environment.
- Loading branch information
1 parent
7d5f966
commit d2b824c
Showing
6 changed files
with
94 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,16 +29,8 @@ aliases: | |
#;> !PROVISION_USE_PROFILE | ||
|
||
#;< RENOVATEBOT | ||
# Specify the correct repository to prevent the bot from accessing all | ||
# repositories available via $RENOVATE_TOKEN. | ||
#;< SCAFFOLD_DEV | ||
- &renovatebot_repository 'drevops/scaffold-destination' | ||
#;> SCAFFOLD_DEV | ||
##### - &renovatebot_repository 'your_org/your_site' | ||
# The schedule to run RenovateBot on. Defaults to running twice a day. | ||
- &renovatebot_schedule "5 11,23 * * *" | ||
# The author details to use for commits made by RenovateBot. | ||
- &renovatebot_git_author 'RenovateBot Self Hosted <[email protected]>' | ||
#;> RENOVATEBOT | ||
|
||
# Shared runner container configuration applied to each job. | ||
|
@@ -405,12 +397,11 @@ jobs: | |
environment: | ||
RENOVATE_PLATFORM: 'github' | ||
RENOVATE_AUTODISCOVER: false | ||
RENOVATE_DEPENDENCY_DASHBOARD: true | ||
RENOVATE_DEPENDENCY_DASHBOARD_TITLE: 'RenovateBot Dependency Dashboard (self-hosted)' | ||
RENOVATE_REPOSITORIES: *renovatebot_repository | ||
RENOVATE_GIT_AUTHOR: *renovatebot_git_author | ||
RENOVATE_DRY_RUN: false | ||
LOG_LEVEL: debug | ||
RENOVATE_REPOSITORIES: "${RENOVATE_REPOSITORIES:-${CIRCLE_PROJECT_REPONAME}/${CIRCLE_PROJECT_USERNAME}}" | ||
RENOVATE_DEPENDENCY_DASHBOARD_TITLE: "${RENOVATE_DEPENDENCY_DASHBOARD_TITLE:-'RenovateBot Dependency Dashboard (self-hosted)'}" | ||
RENOVATE_DEPENDENCY_DASHBOARD: "${RENOVATE_DEPENDENCY_DASHBOARD:-false}" | ||
RENOVATE_DRY_RUN: "${RENOVATE_DRY_RUN:-false}" | ||
RENOVATE_GIT_AUTHOR: "${RENOVATE_GIT_AUTHOR:-'Renovate Self Hosted <[email protected]>'}" | ||
steps: | ||
- checkout | ||
- run: renovate-config-validator | ||
|
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 |
---|---|---|
|
@@ -15,15 +15,14 @@ jobs: | |
|
||
- name: Self-hosted Renovate | ||
uses: renovatebot/[email protected] | ||
env: | ||
# Update the value of RENOVATE_GIT_AUTHOR with your own. | ||
RENOVATE_GIT_AUTHOR: 'Renovate Self Hosted <[email protected]>' | ||
RENOVATE_DEPENDENCY_DASHBOARD_TITLE: 'Renovate Dependency Dashboard (self-hosted) by GitHub Actions' | ||
RENOVATE_DEPENDENCY_DASHBOARD: false | ||
RENOVATE_REPOSITORIES: ${{ github.repository }} | ||
RENOVATE_PLATFORM: 'github' | ||
RENOVATE_AUTODISCOVER: false | ||
RENOVATE_DRY_RUN: false | ||
with: | ||
configurationFile: renovate.json | ||
token: ${{ secrets.RENOVATE_TOKEN }} | ||
env: | ||
RENOVATE_PLATFORM: 'github' | ||
RENOVATE_AUTODISCOVER: false | ||
RENOVATE_REPOSITORIES: ${{ vars.RENOVATE_REPOSITORIES || github.repository }} | ||
RENOVATE_DEPENDENCY_DASHBOARD_TITLE: 'Renovate Dependency Dashboard (self-hosted) by GitHub Actions' | ||
RENOVATE_DEPENDENCY_DASHBOARD: ${{ vars.RENOVATE_DEPENDENCY_DASHBOARD || 'false' }} | ||
RENOVATE_DRY_RUN: ${{ vars.RENOVATE_DRY_RUN || 'false' }} | ||
RENOVATE_GIT_AUTHOR: ${{ vars.RENOVATE_GIT_AUTHOR || 'Renovate Self Hosted <[email protected]>' }} |
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 |
---|---|---|
|
@@ -47,3 +47,16 @@ DREVOPS_CI_TEST_RESULTS=/tmp/tests | |
|
||
# Directory to store test artifacts in CI. | ||
DREVOPS_CI_ARTIFACTS=/tmp/artifacts | ||
|
||
# Self-hosted Renovate bot token. | ||
# Create a GitHub token with a permission to write to a repository. | ||
RENOVATE_TOKEN= | ||
|
||
# Whether to enable self-hosted Renovate bot dashboard. | ||
RENOVATE_DEPENDENCY_DASHBOARD=false | ||
|
||
# Whether to allow self-hosted Renovate bot make changes to the repository. | ||
RENOVATE_DRY_RUN=false | ||
|
||
# Commit author for self-hosted Renovate bot. | ||
RENOVATE_GIT_AUTHOR='Renovate Self Hosted <[email protected]>' |
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 |
---|---|---|
|
@@ -1768,6 +1768,38 @@ Default value: `UNDEFINED` | |
|
||
Defined in: `LAGOON ENVIRONMENT` | ||
|
||
### `RENOVATE_DEPENDENCY_DASHBOARD` | ||
|
||
Whether to enable self-hosted Renovate bot dashboard. | ||
|
||
Default value: `false` | ||
|
||
Defined in: `CI config` | ||
|
||
### `RENOVATE_DRY_RUN` | ||
|
||
Whether to allow self-hosted Renovate bot make changes to the repository. | ||
|
||
Default value: `false` | ||
|
||
Defined in: `CI config` | ||
|
||
### `RENOVATE_GIT_AUTHOR` | ||
|
||
Commit author for self-hosted Renovate bot. | ||
|
||
Default value: `'Renovate Self Hosted <[email protected]>'` | ||
|
||
Defined in: `CI config` | ||
|
||
### `RENOVATE_TOKEN` | ||
|
||
Self-hosted Renovate bot token.<br />Create a GitHub token with a permission to write to a repository. | ||
|
||
Default value: `UNDEFINED` | ||
|
||
Defined in: `CI config` | ||
|
||
### `TARGET_ENV_REMAP` | ||
|
||
Special variable to remap target env to the sub-domain prefix based on UI name. | ||
|
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 |
---|---|---|
|
@@ -45,6 +45,7 @@ | |
"phpspec", | ||
"phpstorm", | ||
"pyrech", | ||
"renovatebot", | ||
"ruleset", | ||
"shellvar", | ||
"sanitised", | ||
|
d2b824c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Deployed on https://66d2a45dfa7190ab6263146e--drevops-scaffold-docs.netlify.app