reposmon
Monitor a git repository, execute a command when it changes. Basically a polling git-hook for pull.
purpose
Execute a chain of command when a git-repository changes
use case
Run testsets and build docker container after commit [change detected] * Run a testset * Build a docker container * Push to registry
requirements
pip install -r requirements.txt
use
reposmon.py
Monitor a git repository, execute a command when it changes.
Usage:
reposmon.py [options] [--] [<giturl> <command>]
reposmon.py -h | --help
Options:
-h --help Show this screen.
-o --once Run only once.
-v --verbose Verbose mode.
-w --write=<writeymlpath> Write arguments yaml file.
-l --load=<loadymlpath> Load arguments yaml file.
-i --interval=<interval> Seconds between checks [default: 60].
-g --gitfolder=<gitfolder> Folder to check the git repos out [default: .].
-c --cmdfolder=<cmdfolder> Folder from where to run the command [default: .].
example
When in local directory or work-directory changes, execute the command in the local directory or command-directory.
python reposmon.py git@github.com:erikdejonge/reposmon.git "docker build ."
optional
bash alias
alias reposmon=”~/[…]/reposmon/reposmon.py
install alias with a workspace checkout of reposmon:
alias reposmon="/Users/rabshakeh/workspace/reposmon/reposmon.py"
commit and sort aliases on osx
On osx the sortalias command sorts all aliasses in .bash_profile
alias sortalias='cat ~/.bash_profile > ~/.bash_profile.backup; cat ~/.bash_profile | grep -v alias | grep -v '\''^$'\'' > ~/.bash_profile_without_alias; alias | grep -v '\''^$'\'' > ~/.bash_profile_only_alias; cat ~/.bash_profile_without_alias > ~/.bash_profile; echo -e '\''\n'\'' >> ~/.bash_profile; cat ~/.bash_profile_only_alias >> ~/.bash_profile; rm ~/.bash_profile_without_alias; rm ~/.bash_profile_only_alias'
Metadata
Release files for reposmon 32
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| reposmon-32.tar.gz | 4.2 kB | Without provenance | Details for reposmon-32.tar.gz |
Release files / reposmon-32.tar.gz
| Download URL | reposmon-32.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5cb694bdeff7cc2f8244f3f8073de6fc2d989b3dbc923fec0dc224bc4c608987
|
|
BLAKE2b-256 checksum How to use checksums |
45db27e2e9c5b60aadd889607c4e1765f95abdb3543de99c30325ede52d5c81a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for reposmon 32
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.