Skip to content
Verified Commit e940a56f authored by Bob Van Landuyt's avatar Bob Van Landuyt
Browse files

feat(renovate): use upstream copier manager

Instead of our own regexManager implementation.

This was implemented in
https://github.com/renovatebot/renovate/issues/25556 so we don't need
our custom implmentation anymore and we can get rid of
`.copier-version` in a separate MR.

To support this, we also need to set `"allowScripts": true` and
`"ignoreScripts": false` to allow the copier upgrade scripts to run.

https://docs.renovatebot.com/configuration-options/#ignorescripts
https://docs.renovatebot.com/self-hosted-configuration/#allowscripts

The `copier.sh` `postUpgradeTask` has been reduced to just run the
`update-asdf-version-variables.sh`. Running `copier update` a second
time would not do anything as the version in `.copier-answers.yml` has
already been updated.

This reintroduced the changes from
!669

But to prevent the issues we saw last time the following has been
changed:

1. We're using the correct key to select only the `copier`
   manager: `matchManagers` instead of `matchManager`.
2. The execution of the `postUpgradeTasks` for this manager are now
   wrapped in a condition to check if the script exists. This means
   that in the case where renovate runs using a newer configuration,
   but using an older container image, the merge request will still be
   created. Only the adsf-variable updates that would have been done
   by the script would not be included.
parent f7548b65
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment