From b32ba63ba2e567add951ef47cc6adb4b3a79350f Mon Sep 17 00:00:00 2001 From: Jidbo Date: Tue, 30 Mar 2021 15:51:30 +0200 Subject: [PATCH] gitlab_runner: check if cache_s3 is defined With this, `cache_s3` does not have to be defined for each runner. --- roles/gitlab_runner/templates/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/gitlab_runner/templates/config.toml b/roles/gitlab_runner/templates/config.toml index 8b78193..ea47a8e 100644 --- a/roles/gitlab_runner/templates/config.toml +++ b/roles/gitlab_runner/templates/config.toml @@ -50,7 +50,7 @@ check_interval = {{ gitlabrunner_check_interval }} ] {% endif %} [runners.cache] -{% if gitlabrunner.cache_s3 %} +{% if gitlabrunner.cache_s3 is defined %} Type = "s3" Shared = false [runners.cache.s3]