PHP patching is never fun. Esp for me as we have our own custom php images (swoole + a bunch of extensions and drivers we need as a business).
Last month’s PHP issue showed us how complex our pipelines were and how it slowed us down when we needed to act fast.
Today I’ve just completed a project that simplifies our pipelines. All off the back of last months shenanigans
- All our apps automatically pick the latest php image we’ve built, no more version pinning (but still optional)
- all our apps now share a single pipeline file that’s version controlled (.GitLab-ci.yml can read configs from another repository, smart!)
- no more semver, just a headache for internal apps
- deploy by merging to staging or main, inspired by Laravel Cloud
- tests on pre-merge rather than on pipeline (though I may do a post-merge test before deploying)
- !important - the new process is documented
It’s amazing how a combination of small changes can save so many headaches and time. Now I’ll get to reap the benefits when the next patches drop today!
commit 913eb52