Crates.io | watchdock |
lib.rs | watchdock |
version | 0.1.0 |
source | src |
created_at | 2024-09-23 15:56:22.527416 |
updated_at | 2024-09-23 15:56:22.527416 |
description | Trigger a build inside a build container (e.g. using cargo-watch), then optionally run another command outside the container when the inner build command succeeds. |
homepage | |
repository | https://github.com/H4ld-London/watchdock.git |
max_upload_size | |
id | 1384251 |
size | 37,859 |
watchdock
Trigger a build inside a build container (e.g. using
cargo-watch
), then optionally run another command outside the container when the inner build command succeeds.
Inside your build container (with --volume ./target/watchdock:/run/watchdock):
cd /src
watchdock listen /run/watchdock/sock cargo build
Then outside your container:
cargo watch -s "watchdock trigger-run ./target/watchdock/sock echo 'DONE - now do my useful thing'"