@yunuseon/kayra 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -115,10 +115,14 @@
|
|
|
115
115
|
# --keep-labels: the runner declares its labels when it starts, and a
|
|
116
116
|
# register without it replaces them with none, so no job finds a runner
|
|
117
117
|
# until the runner restarts.
|
|
118
|
+
# A scope (an owner, or owner/repo) limits a runner to those repos; without
|
|
119
|
+
# one it serves every repo on the instance.
|
|
118
120
|
- name: Register runners
|
|
119
121
|
ansible.builtin.command:
|
|
120
|
-
argv:
|
|
121
|
-
|
|
122
|
+
argv: >-
|
|
123
|
+
{{ ['docker', 'exec', '-i', forgejo_config.container, 'forgejo', 'forgejo-cli', 'actions', 'register',
|
|
124
|
+
'--secret-file', '/dev/stdin', '--name', item.name, '--keep-labels']
|
|
125
|
+
+ (['--scope', item.scope] if item.scope | default('') | length > 0 else []) }}
|
|
122
126
|
stdin: "{{ forgejo_runner_secrets[item.name] }}"
|
|
123
127
|
# Exactly 40 characters: a trailing newline would be a 41st.
|
|
124
128
|
stdin_add_newline: false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yunuseon/kayra",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "A self-hosted app platform and the CLI that runs it: Traefik, Authelia, Jenkins, a registry and rootless BuildKit per server, set up with OpenTofu and Ansible.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Yunus Öztürk",
|