Andre Henriques
f572682713
All checks were successful
continuous-integration/drone/push Build is passing
23 lines
512 B
YAML
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
|
|
...
|