lights/.drone.yml
Andre Henriques 9f21d08b33
All checks were successful
continuous-integration/drone/push Build is passing
fix ci to work when server stoped
2023-03-19 10:05:55 +00:00

23 lines
544 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 || echo "could not stop server"
- 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
...