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
|
|
|
|
- curl aether:3000/quit
|
|
|
|
- scp target/armv7-unknown-linux-gnueabihf/debug/neolights aether:~/new-neoligths
|
2023-03-18 12:49:39 +00:00
|
|
|
- ssh aether "doas systemctl restart lights"
|
2023-03-18 12:45:26 +00:00
|
|
|
- curl aether:3000/start/work
|
2023-03-18 11:15:51 +00:00
|
|
|
node:
|
|
|
|
lights: builder
|
2023-03-18 11:51:36 +00:00
|
|
|
...
|