-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[semver:minor] Add self-hosted Job (#3)
* Add self-hosted Job * Improve documentation
- Loading branch information
1 parent
e649f26
commit 7fa7c5b
Showing
7 changed files
with
100 additions
and
7 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 |
---|---|---|
|
@@ -8,6 +8,8 @@ and this project adheres to | |
|
||
## [Unreleased] | ||
|
||
- Add `self-hosted` Job | ||
|
||
## [1.0.0] - 2020-10-30 | ||
|
||
### Added | ||
|
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,38 @@ | ||
description: | | ||
Run a self-hosted instance of Renovate. | ||
Authentication: | ||
1. Create a bot account for the Git repository. | ||
2. Generate a Personal Access Token for the bot account. | ||
3. In Project Settings, configure the RENOVATE_REPOSITORY_AUTH_TOKEN environment variable (or alternately the name of environment variable passed into the repository_auth_token parameter) as the generated Personal Access Token. | ||
For more information, see: https://github.com/renovatebot/renovate/blob/master/docs/usage/self-hosting.md#user-content-authentication | ||
Configuration: | ||
1. Create a Renovate self-hosted configuration file (eg. renovate.config.js). | ||
2. Pass the file path into the config_file_path parameter. | ||
3. Commit and push the changes to the branch configured in the schedule filter branch. This is usually the default branch (eg. master). | ||
For more information, see: | ||
- https://github.com/renovatebot/renovate/blob/master/docs/usage/self-hosting.md#user-content-configuration | ||
- https://github.com/renovatebot/renovate/blob/master/docs/usage/self-hosted-configuration.md | ||
- https://docs.renovatebot.com/self-hosted-configuration | ||
For more information and examples, see: https://github.com/renovatebot/renovate/blob/master/docs/usage/self-hosting.md | ||
The example below runs Renovate hourly: | ||
usage: | ||
version: 2.1 | ||
orbs: | ||
renovate: daniel-shuy/renovate@x.y | ||
workflows: | ||
renovate: | ||
nightly: | ||
triggers: | ||
- schedule: | ||
cron: "0 * * * *" | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
jobs: | ||
- renovate/self-hosted: | ||
config_file_path: renovate.config.js |
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,46 @@ | ||
description: > | ||
Run a self-hosted instance of Renovate. | ||
executor: | ||
name: default | ||
tag: "\ | ||
<<# parameters.renovate_version >>\ | ||
<< parameters.renovate_version >><<# parameters.slim >>-slim<</ parameters.slim >>\ | ||
<</ parameters.renovate_version >>\ | ||
<<^ parameters.renovate_version >>\ | ||
<<# parameters.slim >>\ | ||
slim\ | ||
<</ parameters.slim >>\ | ||
<<^ parameters.slim >>\ | ||
latest\ | ||
<</ parameters.slim >>\ | ||
<</ parameters.renovate_version >>\ | ||
" | ||
|
||
parameters: | ||
repository_auth_token: | ||
type: env_var_name | ||
default: RENOVATE_REPOSITORY_AUTH_TOKEN | ||
description: | | ||
Environment variable name for the Git repository Personal Auth Token for the bot account. | ||
See https://github.com/renovatebot/renovate/blob/master/docs/usage/self-hosting.md#user-content-authentication | ||
config_file_path: | ||
type: string | ||
default: config.js | ||
description: Path to configuration file (see https://docs.renovatebot.com/self-hosted-configuration/ for configuration options). | ||
renovate_version: | ||
type: string | ||
default: "" | ||
description: Version of Renovate to run (if no version is specified, runs the latest version). | ||
slim: | ||
type: boolean | ||
default: false | ||
description: | | ||
Use "slim" Docker images to reduce startup time. | ||
Set to true if you only use package managers that don't need third party binaries (e.g. JS, Docker, Nuget, pip). | ||
steps: | ||
- checkout | ||
- run: | ||
name: Execute Renovate CLI | ||
command: renovate --token ${<< parameters.repository_auth_token >>} |
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