[SE-5478] feat: add build image pipeline
Description
This PR adds a new pipeline to Grove allowing us to pre-build images based on commits.
Test instructions
lt;dr:
- validate that https://gitlab.com/opencraft/ops/grove-stage-digitalocean/-/jobs/2351004330 succeeds
- check that a maple.3 image exists at https://gitlab.com/opencraft/ops/grove-stage-digitalocean/container_registry/2967280
longer version:
- set
TOOLS_CONTAINER_IMAGE_VERSION
togabor-add-image-build-pipeline
- in the DO staging environment, checkout this branch
- change someting or amend the latest commit using
[AutoDeploy][Build][Image] https://github.com/edx/edx-platform.git|open-release/lilac.3
- push the changes and check a new pipeline started to build the image
- validate the job succeeds and the image is uploaded to the container registry
- revert the grove version changes in the staging cluster repo
Documentation
Author notes
This PR contains some additional changes too:
- Reformatted the code using
make format
- Added a
-v
flag to the pytest command to have more meaningful test failure messages
Edited by Boros Gábor