lights/.drone.yml
Andre Henriques c56823eb31
All checks were successful
continuous-integration/drone/push Build is passing
fix drone ci push file
2023-03-18 16:16:44 +00:00

23 lines
512 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
commands:
- curl -s aether:3000/quit
- scp target/armv7-unknown-linux-gnueabihf/debug/neolights aether:~/neolights
- ssh aether "doas systemctl restart lights"
- sleep 5
- curl -s aether:3000/start/work
node:
lights: builder
...