This commit is contained in:
parent
cfb8b043cb
commit
cbe9ce4ede
@ -12,7 +12,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- mkdir dist build
|
- mkdir dist build
|
||||||
- DESTDIR=build make install
|
- 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:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
- name: installing guildgate binary
|
- name: installing guildgate binary
|
||||||
copy:
|
copy:
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
src: "{{ tempfolder_1.path }}/guildgate"
|
src: "{{ tempfolder_1.path }}/usr/local/bin/guildgate"
|
||||||
dest: /usr/local/bin/
|
dest: /usr/local/bin/
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
register: new_binary
|
register: new_binary
|
||||||
@ -41,6 +41,12 @@
|
|||||||
dest: /etc/systemd/system/guildgate.service
|
dest: /etc/systemd/system/guildgate.service
|
||||||
register: new_unit
|
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
|
- name: reload systemd with new unit
|
||||||
systemd:
|
systemd:
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user