Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
container:
env:
LOG_LEVEL: debug
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier"]'
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier", "^find"]'
RENOVATE_BRANCH_PREFIX: renovate-github/
RENOVATE_ENABLED: ${{ vars.RENOVATE_ENABLED || true }}
RENOVATE_ENABLED_MANAGERS: '["pep621", "github-actions", "gitlabci", "regex"]'
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ renovate:
variables:
GIT_STRATEGY: none
LOG_LEVEL: debug
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier"]'
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier", "^find"]'
RENOVATE_BASE_DIR: $CI_PROJECT_DIR/renovate
RENOVATE_BRANCH_PREFIX: renovate-gitlab/
RENOVATE_ENABLED_MANAGERS: '["pep621", "gitlabci", "regex"]'
Expand Down
33 changes: 33 additions & 0 deletions .renovaterc.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,39 @@
"renovate/renovate"
]
},
{
"matchDepTypes": [
"action"
],
"postUpgradeTasks": {
"commands": [
"find template -type f -exec sed -i 's|{{{depName}}}@{{{currentDigest}}} # {{{currentValue}}}|{{{depName}}}@{{{newDigest}}} # {{{newValue}}}|g' {} +"
]
}
},
{
"matchDepTypes": [
"github-runner"
],
"postUpgradeTasks": {
"commands": [
"find template -type f -exec sed -i 's|{{{depName}}}-{{{currentValue}}}|{{{depName}}}-{{{newValue}}}|g' {} +"
]
}
},
{
"matchDepTypes": [
"container",
"docker",
"image",
"service-image"
],
"postUpgradeTasks": {
"commands": [
"find template -type f -exec sed -i 's|{{{depName}}}:{{{currentValue}}}@{{{currentDigest}}}|{{{depName}}}:{{{newValue}}}@{{{newDigest}}}|g' {} +"
]
}
},
{
"commitMessageTopic": "serious-scaffold-python",
"matchDepTypes": [
Expand Down
33 changes: 33 additions & 0 deletions template/.renovaterc.json.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,39 @@
"renovate/renovate"
]
},
{
"matchDepTypes": [
"action"
],
"postUpgradeTasks": {
"commands": [
"find template -type f -exec sed -i {{ '\'s|{{{depName}}}@{{{currentDigest}}} # {{{currentValue}}}|{{{depName}}}@{{{newDigest}}} # {{{newValue}}}|g\' {} +' }}"
]
}
},
{
"matchDepTypes": [
"github-runner"
],
"postUpgradeTasks": {
"commands": [
"find template -type f -exec sed -i {{ '\'s|{{{depName}}}-{{{currentValue}}}|{{{depName}}}-{{{newValue}}}|g\' {} +' }}"
]
}
},
{
"matchDepTypes": [
"container",
"docker",
"image",
"service-image"
],
"postUpgradeTasks": {
"commands": [
"find template -type f -exec sed -i {{ '\'s|{{{depName}}}:{{{currentValue}}}@{{{currentDigest}}}|{{{depName}}}:{{{newValue}}}@{{{newDigest}}}|g\' {} +' }}"
]
}
},
[%- endif %]
{
"commitMessageTopic": "serious-scaffold-python",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
container:
env:
LOG_LEVEL: debug
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier"]'
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier", "^find"]'
RENOVATE_BRANCH_PREFIX: renovate-github/
RENOVATE_ENABLED: {{ '${{ vars.RENOVATE_ENABLED || true }}' }}
[%- if project_name == "Serious Scaffold Python" %]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ renovate:
variables:
GIT_STRATEGY: none
LOG_LEVEL: debug
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier"]'
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier", "^find"]'
RENOVATE_BASE_DIR: $CI_PROJECT_DIR/renovate
RENOVATE_BRANCH_PREFIX: renovate-gitlab/
RENOVATE_ENABLED_MANAGERS: '["pep621", "gitlabci", "regex"]'
Expand Down