lights/.drone.yml
Andre Henriques 1dcbc2be22
All checks were successful
continuous-integration/drone/push Build is passing
added restart service
2023-03-18 12:49:46 +00:00

21 lines
484 B
YAML

---
kind: pipeline
type: exec
name: Build and deploy
steps:
- name: build
commands:
- rustup default stable
- rustup target add armv7-unknown-linux-gnueabihf
- rustup show
- cargo build --target=armv7-unknown-linux-gnueabihf
- name: deploy
- curl aether:3000/quit
- scp target/armv7-unknown-linux-gnueabihf/debug/neolights aether:~/new-neoligths
- ssh aether "doas systemctl restart lights"
- curl aether:3000/start/work
node:
lights: builder
...