added config file for exec crunner

lintfixes
Jens Timmerman 2 years ago
parent 8e1ad5343a
commit 52747a6bed
  1. 13
      tasks/main.yml
  2. 3
      templates/exec_runner_config.j2

@ -41,6 +41,19 @@
args:
chdir: "{{drone_home}}/drone/cmd/drone-server"
- name: "install local runner"
unarchive:
src: https://github.com/drone-runners/drone-runner-exec/releases/latest/download/drone_runner_exec_linux_amd64.tar.gz
dest: /usr/local/bin/drone-runner-exec
remote_src: yes
- name: "configure local runner"
template:
src: exec_runner_config.j2
dest: "{{drone_home}}/.drone-runner-exec/config"
owner: "{{drone_user}}"
group: "{{drone_user}}"
mode: 0644
- name: "Configure drone"

@ -0,0 +1,3 @@
DRONE_RPC_PROTO="{{drone_rpc_proto}}"
DRONE_RPC_HOST="{{drone_rpc_host}}"
DRONE_RPC_SECRET="{{drone_rpc_secret}}"
Loading…
Cancel
Save