egeneralov.gitlab_runner
egeneralov.gitlab_runner
Zarządzaj gitlab-runnerem z automatyczną konfiguracją.
Wymagania
- system oparty na Debianie
- gitlab wszędzie
Szybka instalacja
wget -O - https://raw.githubusercontent.com/egeneralov/gitlab-runner/master/get.sh 2>/dev/null | GITLAB_TOKEN=b6jR_DnMjMSWVExkhjX1 bash -xe
Możliwe wartości:
- GITLAB_URL opcjonalne,
https://gitlab.com
- GITLAB_TOKEN wymagane
- GITLAB_NAME opcjonalne,
$(hostname)
Ponadto runner będzie miał jeden tag, taki sam jak jego nazwa.
Zmiennie roli
- gitlab_runner_executor: "docker"
- gitlab_runner_ci_server_url: https://gitlab.com/
- gitlab_runner_registration_token: b6jR_DnMjMSWVExkhjX1
- gitlab_runner_docker_default_image: docker:dind
- gitlab_runner_config_file: /etc/gitlab-runner/config.toml
- gitlab_runner_docker_image: gitlab/gitlab-runner:v11.6.1
- gitlab_runner_tag_list:
- gitlab
- docker
- gitlab_runner_register_run_untagged: "true"
- gitlab_runner_register_locked: "false"
- gitlab_runner_request_concurrency: 2
- gitlab_runner_name: my-gitlab-runner
- gitlab_runner_ci_server_token: ""
- gitlab_runner_ci_server_tls_ca_file: ""
- gitlab_runner_ci_server_tls_cert_file: ""
- gitlab_runner_ci_server_tls_key_file: ""
- gitlab_runner_builds_dir: ""
- gitlab_runner_pre_clone_script: ""
- gitlab_runner_pre_build_script: ""
- gitlab_runner_post_build_script: ""
Zależności
- egeneralov.docker
Przykładowy playbook
- hosts: gitlab-runner-dind
vars:
gitlab_runner_executor: dind
gitlab_runner_ci_server_url: https://gitlab.com/
gitlab_runner_registration_token: b6jR_DnMjMSWVExkhjX1
gitlab_runner_docker_default_image: docker:dind
gitlab_runner_docker_image: gitlab/gitlab-runner:v11.8.0
gitlab_runner_tag_list:
- dind
gitlab_runner_register_run_untagged: "true"
gitlab_runner_register_locked: "false"
gitlab_runner_name: my-dind-gitlab-runner
roles:
- egeneralov.docker
- egeneralov.gitlab_runner
- hosts: gitlab-runner-shell
vars:
gitlab_runner_executor: shell
gitlab_runner_ci_server_url: https://gitlab.com/
gitlab_runner_registration_token: b6jR_DnMjMSWVExkhjX1
gitlab_runner_tag_list:
- shell
gitlab_runner_register_run_untagged: "true"
gitlab_runner_register_locked: "false"
gitlab_runner_name: my-shell-gitlab-runner
roles:
- egeneralov.gitlab_runner
Licencja
MIT
Informacje o autorze
Eduard Generalov eduard@generalov.net
Zainstaluj
ansible-galaxy install egeneralov.gitlab_runner
Licencja
mit
Pobrania
207
Właściciel