File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,8 @@ runner_labels: []
8787# GitHub Actions Runner repository (change it if you want to use custom Actions Runner fork)
8888runner_download_repository : " actions/runner"
8989
90- # Extra arguments to pass to `config.sh`
90+ # Extra arguments to pass to `config.sh`.
91+ # Several arguments muste be set as one string (i.e. "--ephemeral --my_special_fork")
9192runner_extra_config_args : " "
9293
9394# Name to assign to this runner in GitHub (System hostname as default)
Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ runner_labels: []
3838# GitHub Actions Runner repository (change it if you want to use custom Actions Runner fork)
3939runner_download_repository : " actions/runner"
4040
41- # Extra arguments to pass to `config.sh`
41+ # Extra arguments to pass to `config.sh`.
42+ # Several arguments muste be set as one string (i.e. "--ephemeral --my_special_fork")
4243runner_extra_config_args : " "
4344
4445# Name to assign to this runner in GitHub (System hostname as default)
Original file line number Diff line number Diff line change 22 galaxy_info :
33 author : Michal Muransky
44 role_name : github_actions_runner
5+ namespace : monolithprojects
56 description : Deploy Github Actions private runner
67 company : MonolithProjects
78 license : " license (MIT)"
Original file line number Diff line number Diff line change 110110- name : Register runner (if new installation) for organization
111111 command :
112112 " {{ runner_dir }}/./config.sh --url {{ github_url }}/{{ github_owner | default(github_account) }} \
113- --token {{ registration.json.token }} --name {{ runner_name }} --labels {{ runner_labels | join(',') }} --unattended"
113+ --token {{ registration.json.token }} --name {{ runner_name }} --labels {{ runner_labels | join(',') }} --unattended \
114+ {{ runner_extra_config_args }}"
114115 args :
115116 chdir : " {{ runner_dir }}"
116117 become : yes
123124- name : Replace registered runner for repo
124125 command :
125126 " {{ runner_dir }}/config.sh --url {{ github_url }}/{{ github_owner | default(github_account) }}/{{ github_repo }} \
126- --token {{ registration.json.token }} --name {{ runner_name }} --labels {{ runner_labels | join(',') }} --unattended --replace"
127+ --token {{ registration.json.token }} --name {{ runner_name }} --labels {{ runner_labels | join(',') }} --unattended \
128+ {{ runner_extra_config_args }} --replace"
127129 args :
128130 chdir : " {{ runner_dir }}"
129131 become : yes
136138- name : Replace registered runner for organization
137139 command :
138140 " {{ runner_dir }}/config.sh --url {{ github_url }}/{{ github_owner | default(github_account) }} \
139- --token {{ registration.json.token }} --name {{ runner_name }} --labels {{ runner_labels | join(',') }} --unattended --replace"
141+ --token {{ registration.json.token }} --name {{ runner_name }} --labels {{ runner_labels | join(',') }} --unattended \
142+ {{ runner_extra_config_args }} --replace"
140143 args :
141144 chdir : " {{ runner_dir }}"
142145 become : yes
You can’t perform that action at this time.
0 commit comments