Add build step that verifies mandatory Ruby patches
What does this MR do?
Adds a similar Ruby patch verification check as gitlab-org/gitlab-build-images!617 (merged).
- Passing build: https://gitlab.com/gitlab-org/build/CNG/-/jobs/3407355507#L1150
- Failing build: https://gitlab.com/gitlab-org/build/CNG/-/jobs/3407433913#L1151 (Tested in !1217 (closed))
I also extracted the patch application logic into the same script so that it co-located related functionality and is easier to iterate on.
Related issues
gitlab-org/gitlab#384081 (closed)
Checklist
See Definition of done.
For anything in this list which will not be completed, please provide a reason in the MR discussion
Required
-
Merge Request Title, and Description are up to date, accurate, and descriptive -
MR targeting the appropriate branch -
MR has a green pipeline on GitLab.com
Expected (please provide an explanation if not completing)
-
Test plan indicating conditions for success has been posted and passes -
Documentation created/updated -
Integration tests added to GitLab QA -
The impact any change in container size has should be evaluated
Edited by Matthias Käppler