diff --git a/cicd/docker-install.yaml b/cicd/docker-install.yaml index cfe410b1..cf683c14 100644 --- a/cicd/docker-install.yaml +++ b/cicd/docker-install.yaml @@ -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 diff --git a/cicd/gitlab-runner.sh b/cicd/gitlab-runner.sh index d2be1d55..2b0674c5 100755 --- a/cicd/gitlab-runner.sh +++ b/cicd/gitlab-runner.sh @@ -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" } diff --git a/cicd/template.config.toml b/cicd/template.config.toml new file mode 100644 index 00000000..d33f8247 --- /dev/null +++ b/cicd/template.config.toml @@ -0,0 +1,6 @@ +[[runners]] + executor = "docker" + [runners.docker] + tls_verify = false + image = "alpine:latest" + privileged = true