1
0
Fork 0
forked from infra/ansible

forgejo: strip the labels after ':' during registration

Signed-off-by: Lenka Segura <lsegura@redhat.com>
This commit is contained in:
Lenka Segura 2026-05-28 16:53:52 +02:00 committed by Lenka Segura
commit 177bb00442

View file

@ -14,7 +14,7 @@
kubernetes.core.k8s_exec:
namespace: forgejo
pod: "{{ forgejo_pods.resources[0].metadata.name }}"
command: "forgejo forgejo-cli actions register --name {{ item['name'] }} --labels {{ item['labels'] | join(',') }} --secret {{ item['secret'] }}{{ ' --scope ' + item['scope'] if item['scope'] is defined and item['scope'] != 'global' else '' }}"
command: "forgejo forgejo-cli actions register --name {{ item['name'] }} --labels {{ item['labels'] | map('regex_replace', ':.*', '') | join(',') }} --secret {{ item['secret'] }}{{ ' --scope ' + item['scope'] if item['scope'] is defined and item['scope'] != 'global' else '' }}"
loop: "{{ forgejo_runners }}"
register: forgejo_cli_outputs
failed_when: >-