generate matrix, auto-remove outdated versions
Sorry, this small PR escalated quickly 🙈
Due to the support end of PHP 7.4 and 8.0, we should not waste energy on these things :-)
- use all-supported-php-versions-by-shopware-version.json to collect supported and released shopware versions
- use https://php.watch/api/v1/versions/secure to check for minimum PHP version with security updates
- results in: min PHP 8.1 which drops support for shopware <6.4.6.0
- generate the matrix based on the collected data (Thanks to @cngJo! I grabbed some lines of his work from https://github.com/FriendsOfShopware/platform-plugin-dev-docker/pull/25)
- build multiple PHP versions per shopware version, publish the latest one as known clean tag
- v6.4.10.1 with PHP 8.1 will get tags: :v6.4.10-8.1-alpine, 6.4.10-8.1
- v6.4.10.1 with PHP 8.2 will get tags: :v6.4.10-8.2-alpine, 6.4.10-8.2, v6.4.10
- add PHP 8.3
INFO: 8,3 fails, while there is no one published yet because it is introduced here, too.
Mh, I have been thinking, but I think I am not yet ready to drop support for the Shopware Images < 6.4.6 images, although the supported PHP versions are not provided with security Updates anymore.
This is due to the fact, that we sometimes still publish plugin updates for Shopware 6.4.x and therefore want to run the tests and probably also have an up to date shopware-cli and not make sure that we only use features depending on the Shopware version.
But I will have a more careful look at the PR (hopefully soon) :-) and clean it up/rebase it and merge it.
@aragon999 thank you. but you are able to build with a newer shopware version, aren‘t you? 🤔
Yes but I cannot run the tests :-)