Use template config to allow privileged containers

This commit is contained in:
Adam Shamblin 2022-11-05 11:51:18 -06:00
parent bb5314ff5e
commit 1636e15b56
No known key found for this signature in database
GPG Key ID: 22E0BC8E6B4D8C8E
3 changed files with 11 additions and 0 deletions

View File

@ -21,6 +21,10 @@
- docker-compose-plugin
- name: install-earthly
ansible.builtin.script: ./earthly-setup.sh
- name: install-gitlab-runner-config
ansible.builtin.copy:
src: template.config.toml
dest: /srv/gitlab-runner/config/
- name: install-gitlab-runner
ansible.builtin.script: ./gitlab-runner.sh install
- name: register-gitlab-runner

View File

@ -17,6 +17,7 @@ register () {
--url "${CI_SERVER_URL}" \
--registration-token "${REGISTRATION_TOKEN}" \
--description "${RUNNER_NAME}" \
--template-config /srv/gitlab-runner/config/template.config.toml \
--tag-list "amd64,linux"
}

View File

@ -0,0 +1,6 @@
[[runners]]
executor = "docker"
[runners.docker]
tls_verify = false
image = "alpine:latest"
privileged = true