install
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jeffrey C. Ollie 2020-10-04 15:54:50 -05:00
parent f95de5ff34
commit 103a46da20
Signed by: jeff
GPG key ID: 6F86035A6D97044E
2 changed files with 14 additions and 0 deletions

View file

@ -20,3 +20,12 @@ steps:
- name: build - name: build
commands: commands:
- go build -v - go build -v
- name: install
commands:
- mkdir -p /opt/mystreamdeck
- cp mystreamdeck /opt/mystreamdeck-${DRONE_BUILD_STARTED}
- mv /opt/mystreamdeck-${DRONE_BUILD_STARTED} /opt/mystreamdeck
- cp mystreamdeck.service /etc/systemd/system
- systemctl daemon-reload
- systemctl restart mystreamdeck.service

5
mystreamdeck.service Normal file
View file

@ -0,0 +1,5 @@
[Unit]
Description=mystreamdeck
[Service]
ExecStart=/opt/mystreamdeck/mystreamdeck --config=/opt/mystreamdeck/mystreamdeck.yaml