There are three relevant scripts:
- prepare.sh - This will prepare the container, pulling it, run it, install git, curl and the gitlab-ci-runner binary, which are needed during the execution.
- run.sh - This script passes all script commands from the .gitlab-ci.yml to the container.
- cleanup.sh - After the execution this script will cleanup the container and caches, except the artifactory cache.
The base.sh defines some variables which are used by the other three scripts, like the container name, cache directory and image to run.