Store sensitive vars in pass

This commit is contained in:
polyfloyd 2024-07-10 20:47:01 +02:00
parent 53a1343491
commit 44b73a216f
7 changed files with 15 additions and 8 deletions

View file

@ -21,7 +21,7 @@
mode: 0755
- name: Register runner
command: "forgejo-runner register --no-interactive --instance={{ forgejo_url }} --token={{ forgejo_runner_token }}"
command: "forgejo-runner register --no-interactive --instance={{ forgejo_url }} --token={{ lookup('passwordstore', 'git/ci subkey=runner_token') }}"
args:
chdir: "{{ runner_wd }}"
creates: "{{ runner_wd }}/.runner"