From cbe9ce4ede086e8164bafe068f36d7b676edd635 Mon Sep 17 00:00:00 2001 From: Steve Date: Sat, 7 Aug 2021 15:15:05 -0400 Subject: [PATCH] use proper file paths --- .drone.yml | 2 +- deploy.yml | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index fd0f69c..3e94a1c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,7 +12,7 @@ steps: commands: - mkdir dist build - DESTDIR=build make install - - tar -czf dist/release-$DRONE_TAG-$DRONE_STAGE_ARCH.tar.gz build/* + - tar -czf dist/release-$DRONE_TAG-$DRONE_STAGE_ARCH.tar.gz build/* init/* when: event: tag diff --git a/deploy.yml b/deploy.yml index 40f82da..0514f8b 100644 --- a/deploy.yml +++ b/deploy.yml @@ -29,7 +29,7 @@ - name: installing guildgate binary copy: remote_src: yes - src: "{{ tempfolder_1.path }}/guildgate" + src: "{{ tempfolder_1.path }}/usr/local/bin/guildgate" dest: /usr/local/bin/ mode: '0755' register: new_binary @@ -41,6 +41,12 @@ dest: /etc/systemd/system/guildgate.service register: new_unit + - name: installing default templates + copy: + remote_src: yes + src: "{{ tempfolder_1.path}}/usr/local/share/guildgate/" + dest: /usr/local/share + - name: reload systemd with new unit systemd: daemon_reload: yes