This sample includes two specific docker image builds that we run through gitlab-ci, though the pattern is mostly translatable to other similar tools such as Drone CI.
Documentation on the build file format can be found here: https://docs.gitlab.com/ce/ci/yaml/README.html
Additionally, we're heavily leveraging various variables sourced from the CI engine itself: https://docs.gitlab.com/ce/ci/variables/