Skip to content
This repository was archived by the owner on Mar 2, 2019. It is now read-only.

Commit 5ef8330

Browse files
committed
Add gitlab_runner_docker_image option
1 parent 9bbda69 commit 5ef8330

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ Defaults to the hostname.
3131
The executor used by the runner.
3232
Defaults to `shell`.
3333

34+
`gitlab_runner_docker_image`
35+
The default Docker image to use. Required when executor is `docker`.
36+
3437
`gitlab_runner_tags`
3538
The tags assigned to the runner,
3639
Defaults to an empty list.

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ gitlab_runner_registration_token: ''
1010
gitlab_runner_description: '{{ ansible_hostname }}'
1111
# Runner executor
1212
gitlab_runner_executor: 'shell'
13+
# Default Docker image
14+
gitlab_runner_docker_image: ''
1315
# Runner tags
1416
gitlab_runner_tags: []

tasks/register-runner.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@
1212
--description '{{ gitlab_runner_description }}'
1313
--tag-list '{{ gitlab_runner_tags | join(",") }}'
1414
--executor '{{ gitlab_runner_executor }}'
15+
--docker-image '{{ gitlab_runner_docker_image }}'
1516
when: configured_runners.stderr.find('\n{{ gitlab_runner_description }}') == -1

0 commit comments

Comments
 (0)