https://github.com/duologic/gitwatch
https://github.com/duologic/gitwatch
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/duologic/gitwatch
- Owner: Duologic
- Created: 2020-08-19T09:21:05.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-19T14:19:24.000Z (almost 6 years ago)
- Last Synced: 2025-06-14T14:08:17.727Z (12 months ago)
- Language: Go
- Size: 1.46 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gitwatch
Simple tool that can pull in the latest of a git branch every minute.
The intend is to run this as a sidecar to provide configuration or data on the filesystem in a GitOps-like fashion.
## Usage:
```
Usage of gitwatch:
-branch string
remote branch name to watch (default "master")
-config string
path to the config file
-dir string
remote branch name to watch (default "/repo")
-repository string
git repository (http/https/ssh)
```
The `-config` is a json file for all arguments, making the other arguments optional. Using other arguments will override
the `-config`.
## Usage example with SSH:
```
docker run --rm -ti \
-v ${HOME}/.ssh:/ssh \
-e GIT_SSH_COMMAND='ssh -i /ssh/id_rsa' \
duologic/gitwatch \
--repository git@github.com:example/repo.git
```