infrastructure/roles/gitlab-runner
2020-08-10 01:37:13 +02:00
..
defaults Initial commit 2020-08-10 01:37:13 +02:00
meta Initial commit 2020-08-10 01:37:13 +02:00
tasks Initial commit 2020-08-10 01:37:13 +02:00
templates Initial commit 2020-08-10 01:37:13 +02:00
README.md Initial commit 2020-08-10 01:37:13 +02:00

gitlab-runner

This will setup a gitlab-runner instance, used to run CI jobs from a Gitlab instance.

NOTE: Currently this will only allow to configure an Hetzner auto-scaling docker+machine runner.

NOTE2: This will by default deploy docker machines with the priveleged flag enabled, so only use this in a trusted environment or set max builds to 1 to prevent malicious actions affecting other builds.

Requirements

You will need to have docker and docker-compose installed or declared as dependencies with their respective roles.

Role Variables

Please look at the defaults/main.yml for all available variables and their description.

Note: Lines that are commented out via # are usually still valid/used variables, but they are not defined by default, so they might enable a feature, when uncommenting/defining them!

Dependencies

  • docker
  • docker-compose

License

GPL-3.0-only