Skip to content
Snippets Groups Projects
Commit 600c5a25 authored by Petr Shilo's avatar Petr Shilo
Browse files

s3 support added

parent 0d58c874
Branches
Tags
No related merge requests found
......@@ -45,6 +45,15 @@ The default Docker image to use. Required when executor is `docker`.
The tags assigned to the runner,
Defaults to an empty list.
`gitlab_runner_cache_type`
Variables to set s3 as a shared cache server. If set it requires variables listed below:
`gitlab_runner_cache_s3_server_address`
`gitlab_runner_cache_s3_access_key`
`gitlab_runner_cache_s3_access_key`
`gitlab_runner_cache_s3_bucket_name`
`gitlab_runner_cache_s3_insecure`
`gitlab_runner_cache_cache_shared`
See the [config for more options](https://github.com/riemers/ansible-gitlab-runner/blob/master/tasks/register-runner.yml)
Example Playbook
......
......@@ -24,4 +24,13 @@
--ssh-port '{{ gitlab_runner_ssh_port }}'
--ssh-password '{{ gitlab_runner_ssh_password }}'
--ssh-identity-file '{{ gitlab_runner_ssh_identity_file }}'
{% if gitlab_runner_cache_type is defined %}
--cache-type '{{ gitlab_runner_cache_type }}'
--cache-s3-server-address '{{ gitlab_runner_cache_s3_server_address }}'
--cache-s3-access-key '{{ gitlab_runner_cache_s3_access_key }}'
--cache-s3-secret-key '{{ gitlab_runner_cache_s3_access_key }}'
--cache-s3-bucket-name '{{ gitlab_runner_cache_s3_bucket_name }}'
--cache-s3-insecure '{{ gitlab_runner_cache_s3_insecure }}'
--cache-cache-shared '{{ gitlab_runner_cache_cache_shared }}'
{% endif %}
when: configured_runners.stderr.find('\n' + gitlab_runner_description) == -1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment