considering repository on GitHub there are a lot of events may happen to that repo such as push event or merge code into the master branch, these example of events and any event can trigger an automated workflow, and workflow can up one or more containers (instances) for you in the Cloud then provide a set of steps or instructions for the container to do something useful for you.