diff options
| author | Luke Hoersten <[email protected]> | 2026-04-25 19:55:16 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-04-25 19:55:16 -0500 |
| commit | 6a89fefd2d18fce815d8101727b75efc9d826210 (patch) | |
| tree | fb64f3ff4974b9183f586338fd10006fa1e7e9ee /lnurld/build/tasks | |
| parent | f2f3906b8e9f1af99de9cf6488d54732a711dfc6 (diff) | |
- Use git short hash as version (0bf1955)
- Add lnurld_version to server role defaults
- Switch server install to unarchive
- Add lnurld_srv_dir variable
Diffstat (limited to 'lnurld/build/tasks')
| -rw-r--r-- | lnurld/build/tasks/main.yaml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lnurld/build/tasks/main.yaml b/lnurld/build/tasks/main.yaml index df43eed..3dd30cc 100644 --- a/lnurld/build/tasks/main.yaml +++ b/lnurld/build/tasks/main.yaml @@ -16,16 +16,17 @@ git: repo: "{{lnurld_git}}" dest: "{{lnurld_build_dir}}" + version: "{{lnurld_version}}" - name: check if build exists stat: - path: "{{lnurld_build_dir}}/lnurld" + path: "{{lnurld_srv_dir}}/lnurld-{{lnurld_version}}.tar.gz" register: build_file - name: build command: "go build" args: - chdir: "/tmp/lnurld/" + chdir: "{{lnurld_build_dir}}" when: not build_file.stat.exists - name: create build server dir @@ -34,12 +35,11 @@ path: "{{lnurld_srv_dir}}" mode: "0755" state: "directory" - when: not build_file.stat.exists -- name: copy bin to build server dir +- name: create gz archive of lnurld become: yes - copy: - remote_src: yes - src: "{{lnurld_build_dir}}/lnurld" - dest: "{{lnurld_srv_dir}}/lnurld" + archive: + path: "{{lnurld_build_dir}}/lnurld" + dest: "{{lnurld_srv_dir}}/lnurld-{{lnurld_version}}.tar.gz" + format: "gz" when: not build_file.stat.exists |
