-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add initial version of renovate config (#321)
- Loading branch information
Showing
14 changed files
with
132 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Renovate | ||
jobs: | ||
renovate: | ||
container: | ||
env: | ||
LOG_LEVEL: debug | ||
RENOVATE_BRANCH_PREFIX: renovate-github/ | ||
RENOVATE_ENABLED_MANAGERS: '["pep621", "github-actions"]' | ||
RENOVATE_GIT_AUTHOR: Renovate GitHub Bot <github@renovatebot.com> | ||
RENOVATE_OPTIMIZE_FOR_DISABLED: 'true' | ||
RENOVATE_PLATFORM: github | ||
RENOVATE_REPOSITORIES: '["${{ github.repository }}"]' | ||
RENOVATE_REPOSITORY_CACHE: enabled | ||
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} | ||
image: ghcr.io/renovatebot/renovate:37.202.2 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: env | sort | ||
- run: | | ||
if [ -z "${{ secrets.RENOVATE_TOKEN }}" ]; then | ||
echo "RENOVATE_TOKEN not set, skipping ..." | ||
else | ||
renovate $RENOVATE_EXTRA_FLAG | ||
fi | ||
on: | ||
schedule: | ||
# * is a special character in YAML so you have to quote this string | ||
- cron: '0 * * * 0,6' | ||
workflow_dispatch: null |
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
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,21 @@ | ||
renovate: | ||
cache: | ||
key: ${CI_COMMIT_REF_SLUG}-renovate | ||
paths: | ||
- renovate/cache/renovate/repository/ | ||
image: renovate/renovate:37.202.2 | ||
rules: | ||
- if: $CI_PIPELINE_SOURCE == "schedule" && $RENOVATE_TOKEN != null | ||
script: renovate $RENOVATE_EXTRA_FLAG | ||
stage: build | ||
variables: | ||
LOG_LEVEL: debug | ||
RENOVATE_BASE_DIR: $CI_PROJECT_DIR/renovate | ||
RENOVATE_BRANCH_PREFIX: renovate-gitlab/ | ||
RENOVATE_ENABLED_MANAGERS: '["pep621"]' | ||
RENOVATE_ENDPOINT: $CI_API_V4_URL | ||
RENOVATE_GIT_AUTHOR: Renovate GitLab Bot <gitlab@renovatebot.com> | ||
RENOVATE_OPTIMIZE_FOR_DISABLED: 'true' | ||
RENOVATE_PLATFORM: gitlab | ||
RENOVATE_REPOSITORIES: '["$CI_PROJECT_PATH"]' | ||
RENOVATE_REPOSITORY_CACHE: enabled |
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,10 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:best-practices", | ||
":maintainLockFilesWeekly" | ||
], | ||
"ignorePaths": [ | ||
"**/template/**" | ||
] | ||
} |
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 @@ | |
"pyproject", | ||
"pytest", | ||
"Quickstart", | ||
"renovatebot", | ||
"setuptools", | ||
"softprops", | ||
"sphinxcontrib", | ||
|
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,12 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:best-practices", | ||
":maintainLockFilesWeekly" | ||
] | ||
[%- if project_name == "Serious Scaffold Python" %], | ||
"ignorePaths": [ | ||
"**/template/**" | ||
] | ||
[%- endif %] | ||
} |
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 @@ | |
"pyproject", | ||
"pytest", | ||
"Quickstart", | ||
"renovatebot", | ||
"setuptools", | ||
"softprops", | ||
"sphinxcontrib", | ||
|
29 changes: 29 additions & 0 deletions
29
...te/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/renovate.yml.jinja
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,29 @@ | ||
name: Renovate | ||
jobs: | ||
renovate: | ||
container: | ||
env: | ||
LOG_LEVEL: debug | ||
RENOVATE_BRANCH_PREFIX: renovate-github/ | ||
RENOVATE_ENABLED_MANAGERS: '["pep621", "github-actions"]' | ||
RENOVATE_GIT_AUTHOR: Renovate GitHub Bot <github@renovatebot.com> | ||
RENOVATE_OPTIMIZE_FOR_DISABLED: 'true' | ||
RENOVATE_PLATFORM: github | ||
RENOVATE_REPOSITORIES: '["{{ '${{ github.repository }}' }}"]' | ||
RENOVATE_REPOSITORY_CACHE: enabled | ||
RENOVATE_TOKEN: {{ '${{ secrets.RENOVATE_TOKEN }}' }} | ||
image: ghcr.io/renovatebot/renovate:37.202.2 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: env | sort | ||
- run: | | ||
if [ -z "{{ '${{ secrets.RENOVATE_TOKEN }}' }}" ]; then | ||
echo "RENOVATE_TOKEN not set, skipping ..." | ||
else | ||
renovate $RENOVATE_EXTRA_FLAG | ||
fi | ||
on: | ||
schedule: | ||
# * is a special character in YAML so you have to quote this string | ||
- cron: '0 * * * 0,6' | ||
workflow_dispatch: null |
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
21 changes: 21 additions & 0 deletions
21
...m' or repo_host_type == 'gitlab-self-managed' %].gitlab[% endif %]/workflows/renovate.yml
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,21 @@ | ||
renovate: | ||
cache: | ||
key: ${CI_COMMIT_REF_SLUG}-renovate | ||
paths: | ||
- renovate/cache/renovate/repository/ | ||
image: renovate/renovate:37.202.2 | ||
rules: | ||
- if: $CI_PIPELINE_SOURCE == "schedule" && $RENOVATE_TOKEN != null | ||
script: renovate $RENOVATE_EXTRA_FLAG | ||
stage: build | ||
variables: | ||
LOG_LEVEL: debug | ||
RENOVATE_BASE_DIR: $CI_PROJECT_DIR/renovate | ||
RENOVATE_BRANCH_PREFIX: renovate-gitlab/ | ||
RENOVATE_ENABLED_MANAGERS: '["pep621"]' | ||
RENOVATE_ENDPOINT: $CI_API_V4_URL | ||
RENOVATE_GIT_AUTHOR: Renovate GitLab Bot <gitlab@renovatebot.com> | ||
RENOVATE_OPTIMIZE_FOR_DISABLED: 'true' | ||
RENOVATE_PLATFORM: gitlab | ||
RENOVATE_REPOSITORIES: '["$CI_PROJECT_PATH"]' | ||
RENOVATE_REPOSITORY_CACHE: enabled |