mystreamdeck/.drone.yml

32 lines
623 B
YAML
Raw Normal View History

2020-10-04 15:28:04 -05:00
---
kind: secret
name: drone-ssh-private-key
get:
path: drone-ssh-key
name: ssh-private-key
---
kind: pipeline
type: ssh
name: build
server:
host: 192.168.4.79
user: root
ssh_key:
from_secret: drone-ssh-private-key
steps:
- name: build
commands:
- go build -v
2020-10-04 15:54:50 -05:00
- 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