lights/.drone.yml
Andre Henriques f572682713
All checks were successful
continuous-integration/drone/push Build is passing
fix drone ci push right file
2023-03-18 15:13:01 +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:~/neoligths
- ssh aether "doas systemctl restart lights"
- sleep 5
- curl -s aether:3000/start/work
node:
lights: builder
...