lights/.drone.yml

23 lines
544 B
YAML
Raw Normal View History

2023-03-18 11:51:36 +00:00
---
2023-03-16 23:47:26 +00:00
kind: pipeline
2023-03-18 11:28:46 +00:00
type: exec
2023-03-18 12:45:26 +00:00
name: Build and deploy
2023-03-16 23:47:26 +00:00
steps:
2023-03-18 11:41:47 +00:00
- name: build
2023-03-17 00:16:45 +00:00
commands:
2023-03-18 12:09:34 +00:00
- rustup default stable
2023-03-18 12:16:07 +00:00
- rustup target add armv7-unknown-linux-gnueabihf
- rustup show
2023-03-18 12:08:40 +00:00
- cargo build --target=armv7-unknown-linux-gnueabihf
2023-03-18 12:45:26 +00:00
- name: deploy
2023-03-18 12:53:49 +00:00
commands:
2023-03-19 10:05:55 +00:00
- curl -s aether:3000/quit || echo "could not stop server"
2023-03-18 16:16:44 +00:00
- scp target/armv7-unknown-linux-gnueabihf/debug/neolights aether:~/neolights
2023-03-18 12:49:39 +00:00
- ssh aether "doas systemctl restart lights"
2023-03-18 12:56:47 +00:00
- sleep 5
- curl -s aether:3000/start/work
2023-03-18 11:15:51 +00:00
node:
lights: builder
2023-03-18 11:51:36 +00:00
...