forked from infra/ansible
forgejo: strip the labels after ':' during registration
Signed-off-by: Lenka Segura <lsegura@redhat.com>
This commit is contained in:
parent
a1c7d0828a
commit
177bb00442
1 changed files with 1 additions and 1 deletions
|
|
@ -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: >-
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue