# FIRST, generate a [[runners]] block using command 'sudo gitlab-runner register' # and THEN, add more options & modify options.. # because the registration must be done explicitly from commnadline.. to get A_GENERATED_TOKEN. # https://docs.gitlab.com/runner/commands/README.html#gitlab-runner-register # https://docs.gitlab.com/runner/configuration/advanced-configuration.html # example setup running CI @ docker # with this, every commit will refresh whole python packages.. will take 1 min. ==> slow. but up to date all the time.. concurrent = 2 # this should be > 0 check_interval = 0 [session_server] session_timeout = 1800 [[runners]] name = "pelican-ci-test" url = "https://nosignal.hopto.org/gitlab/" token = "A_GENERATED_TOKEN" executor = "docker" [runners.custom_build_dir] [runners.docker] tls_verify = false image = "python:3.7-alpine" privileged = false disable_entrypoint_overwrite = false oom_kill_disable = false disable_cache = false volumes = ["/home/admin/pelican-themes/:/themes", "/var/www/webapp_doohoyi/nosignal.hopto.org_site/ci:/site-public:rw"] # above is important, --> https://stackoverflow.com/a/38099850 shm_size = 0 network_mode = "host" # check your network name with 'docker network ls' --> https://stackoverflow.com/a/50461875 [runners.cache] [runners.cache.s3] [runners.cache.gcs]