This commit is contained in:
parent
f95de5ff34
commit
103a46da20
2 changed files with 14 additions and 0 deletions
|
@ -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
5
mystreamdeck.service
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[Unit]
|
||||||
|
Description=mystreamdeck
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/opt/mystreamdeck/mystreamdeck --config=/opt/mystreamdeck/mystreamdeck.yaml
|
Loading…
Reference in a new issue