Package and image Building

Motivation

This document is about building code, libraries, etc… For instance at hephia we have packages (python and maven) and images(docker) to build. As part of our CI/CD when code is merged in the main branch dev, some builds are triggered.
So each time a merge request is done, the assignee developer shoul check the status of the builds. This developer can also create or edit(not recommended) triggers to build specific artifacts.

How to do that?

In the console

- Check builds

In this UI, you have all the builds with some basics informations. Retrieve you branch with Ref, your commit with Commit or even your trigger with Trigger Name.

You can check the builds logs in real time the running build by clicking on the Build link. If there is an error, check at end of the logs what is the message returned.

- Triggers

A Cloud Build trigger automatically starts a build whenever you make any changes to your source code. You can configure the trigger to build your code on any changes to the source repository or only changes that match certain criteria.

You can list, create your own(temporary) or edit existing triggers there. To create one follow this GCP documentation.

In python

TODO