Skip to content

Commit 34f0da0

Browse files
committed
Support docker pull-policy
1 parent 628c160 commit 34f0da0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

templates/etc/gitlab-runner/config.toml.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ concurrent = {{ gitlab_runner__concurrent }}
308308
{% if gitlab_runner__tpl_docker_allowed_services %}
309309
allowed_services = [ "{{ gitlab_runner__tpl_docker_allowed_services | join('", "') }}" ]
310310
{% endif %}
311+
{% if runner.docker_pull_policy|d() %}
312+
pull_policy = "{{ runner.docker_pull_policy }}"
313+
{% endif %}
311314
{% endif %}
312315
{% if ((runner.executor|d() and runner.executor in [ 'parallels' ]) or
313316
(gitlab_runner__executor in [ 'parallels' ])) %}

0 commit comments

Comments
 (0)