Skip to content

Commit

Permalink
Merge pull request #50 from lku/condinitional-param
Browse files Browse the repository at this point in the history
Add cache-s3-bucket-name parameter only when is configured
  • Loading branch information
riemers authored Jun 13, 2019
2 parents 12960bf + 0369b87 commit f739e61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/register-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
--cache-s3-access-key '{{ gitlab_runner.cache_s3_access_key }}'
--cache-s3-secret-key '{{ gitlab_runner.cache_s3_secret_key }}'
{% endif %}
{% if gitlab_runner.cache_s3_bucket_name is defined %}
--cache-s3-bucket-name '{{ gitlab_runner.cache_s3_bucket_name }}'
{% endif %}
{% if gitlab_runner.cache_s3_bucket_location is defined %}
--cache-s3-bucket-location '{{ gitlab_runner.cache_s3_bucket_location }}'
{% endif %}
Expand Down

0 comments on commit f739e61

Please sign in to comment.