Crates.io | mincd |
lib.rs | mincd |
version | 0.1.6 |
source | src |
created_at | 2023-04-24 08:17:53.020333 |
updated_at | 2023-04-27 18:29:28.371167 |
description | A minimal remote Git repository watcher |
homepage | |
repository | https://github.com/tarneaux/mincd |
max_upload_size | |
id | 847156 |
size | 25,991 |
Wait until a remote git repository has been changed, and then exit. This is meant to be used in scripts, to replace a CD system. I am using it to deploy renn.es to my server using docker.
cargo install mincd
Usage: mincd <url> <branch> [-i <interval>] [-p <local/path>]
url: URL of the git repository
branch: branch to watch (usually main or master)
interval: interval in seconds to check for changes (default: 60)
local/path: path to the local git repository
If the local path is specified, mincd will get the first commit hash from the local repository instead of the remote one.
This is useful if you have a local mirror of a remote repository and want to keep it up to date.
Example:
mincd https://github.com/tarneaux/.f master -i 60